Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

HOW TO IMPORT IMAGE TO MY WORK SPACE AS MATRIX AFTER I SAVED IT.

조회 수: 1 (최근 30일)
zawaiter
zawaiter 2012년 1월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
hi wish u can help me. i saved a 3d image to my current folder using the expression hgsave(gcf, 'Image3D.fig', '-v7.3'); i wish to import the image again to my work space as M*N*O MATRIX.i tryied import to work space but i got 5 variables named children,handle,special,type,properties.i like to impoort it as 3D matrix,can u help me?

답변 (2개)

Image Analyst
Image Analyst 2012년 1월 28일
What do you want to save, the data that made up the plot, or the plot itself?
If you want to save the data that you plotted or displayed, then you'll have to save the original data into a mat file with the save() function so that you can recall it later with load().

zawaiter
zawaiter 2012년 1월 28일
dear Image Analyst thanks for care i want to recall the data made up the plot. the figure is the output of a function and its data didnt appear in the workspace for me to save ,only the handle appear in the workspace. but i used this expression hgsave(gcf, 'Image3D.fig', '-v7.3'); to save the figure (to my current folder) .now i want the image data as 3D matrix in my work space. from the data i saved and after import it to the workspace i found these variables named children,handle,special,type and properties.can i get the data out of them?
  댓글 수: 1
Image Analyst
Image Analyst 2012년 1월 28일
Did you read the last sentence of my answer? You use save() to save out your variable, then use load() to read it back in.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by