by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.8, Creation date: 2019-12-08, Last change: 2025-08-19
See Also: , SGbatchjob
, SGbatchresult
, stringfnctresult
SGbatchdelete(cmd)
cmd: |
SGbatchdelete
job=SGbatchjob('VMreadnifti(''/Volumes/LUETH-WIN/WIN AIM Matlab Libraries/Medical Data/004MITK - Klinikum Sud/004Lumbal vertebral body 1.nii'');');
job=SGbatchjob('[rand(1e3,1e3)*rand(1e3,1e3)]');
wait(job) % Not required
SGbatchresult(job); whos ans
This function, SGbatchdelete, is designed to manage and delete jobs from a global table, SGBatchIDtable, which is used in batch processing within the SolidGeometry library. The function can either delete all jobs or a specific job based on the input parameters.
SGBatchIDtable, which stores information about batch jobs.SGBatchIDtable using the size function.getfuncparams. If no ID is provided, it defaults to an empty array.parcluster('local').delete(myCluster.Jobs).SGBatchIDtable is cleared by setting it to an empty cell array.parcluster('local').findJob(c,'ID',ID).delete(job).SGBatchIDtable is cleared by setting it to an array of empty cells.The function can be used in conjunction with other batch processing functions such as SGbatchjob, wait, and SGbatchresult. An example is provided where a job is created, potentially waited on, and then the result is fetched. The SGbatchdelete function can be used to clean up the job afterwards.