SDT-base         Contents     Functions         Previous Next     PDF Index

sdtm

Purpose

Name space for public methods implementing base SDT operations.

Syntax

  methods(sdtm) % do list methods
  sdtweb('_taglist','sdtm') % to list tags and access associated code

Description

sdtm groups a number of methods of general interest.

pause

Runs a robust pause with the same arguments than the MATLAB pause command. This one avoids memory leaks and avoids skips occurring in batch mode for some MATLAB versions.

save,-safe

High level handling of saving to MAT-files. This function integrates saving with exploitation of saving preferences, filename and robustness. It uses sdth.fileutil('fsafe','save') .

r1=struct('val',10);
r2=25;
% setup saving options
% use V6Flag-setpred to make this permanent
sdtdef('V6Flag',{'-v7.3','-nocompression'});
% generate a file name
f1=nas2up('tempname.mat')
% call save
sdtm.save(f1,'r1');
sdtm.save(f1,'r2','-append')
% example using ProjectWd
[wd1,f1,ext]=fileparts(f1);
sdtroot('setProject',struct('ProjectWd',wd1));
sdtm.save(struct('UI','SDT Root','FileName',fullfile('@ProjectWd',[f1 ext])),'r2')
% clear file
sdth.fileutil('fsafe','delete',fullfile(wd1,[f1 ext]));

urn , urnCb, urnValG, urnObj ...

urn which stands for Uniform Resource Name (section 8.4) utilities are

busyWindow

See section 8.6.1

range

Provides a uniform entry point to run series of experiments doe. Parameters of the experiments are listed in a range (see fe_range).

store

Uniform description of how to store results of a step.

to ...

to... methods are used for robust conversion to specific types using testing of object content to decide on the proper conversion methodology. sdtm.toString converts any object to a string. sdtm.toStruct converts to a MATLAB struct. sdtm.toCinCell converts to the SDT java object associated with a table cell.

node ...

node... methods implement robust loading of data files for integration in a database object. This is an ongoing development that will be further detailed.

sdtm.nodeLoadSE(FileName,RO) is a robust superelement loading strategy. Options can be given as fields of the RO structure.


©1991-2024 by SDTools
Previous Up Next