Saving a logical mask
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a code for creating a logical mask and calculating values inside the ROI of the mask. My query is: is it possible to save the logical mask to the desktop so that it can be applied to other data in the future?
4 Kommentare
Stephen23
am 4 Aug. 2017
"As a file essentially so that in future I can just apply it to matrices. If this is possible"
It is possible and my answer shows you the simplest and most efficient way of doing this. Did you try it?
Akzeptierte Antwort
Stephen23
am 3 Aug. 2017
Bearbeitet: Stephen23
am 5 Aug. 2017
save('nameOfFile.mat','nameOfVariable')
S = load('nameOfFile.mat');
mask = S.nameOfVariable;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!