hi. i have two variables which are AREA and PERIMETER.
Show older comments
how to save both variables in a mat.file? i only have coding for one variable only :
_ _ _objArea = objMeasurements(k).Area; % Get area.
AREA=[objArea;AREA];
save('AREA.mat','AREA');
objPerimeter= objMeasurements(k).Perimeter; % Get perimeter.
PERIMETER=[objPerimeter;PERIMETER];
save('PERIMETER.mat','PERIMETER');___
1 Comment
Varun Pai
on 13 Oct 2015
Save all the variables into a single matrix. Then you can save it as a Mat
Accepted Answer
More Answers (1)
Stephen23
on 13 Oct 2015
You could do this in two calls:
save(filename,'AREA')
... other code
save(filename,'PERIMETER','-append')
OR in one call:
save(Filename, 'AREA', 'PERIMETER')
1 Comment
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
