Saving a logical mask
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Stephen23
2017 年 8 月 4 日
"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?
採用された回答
Stephen23
2017 年 8 月 3 日
編集済み: Stephen23
2017 年 8 月 5 日
save('nameOfFile.mat','nameOfVariable')
S = load('nameOfFile.mat');
mask = S.nameOfVariable;
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!