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!