how to save the image obtained from the plot command?
조회 수: 4 (최근 30일)
이전 댓글 표시
i have used the command "plot( cytoplasm1(:,2), cytoplasm1(:,1), 'g-', 'LineWidth', 1)" in my code. i don't know how to save the image that i am getting from this command into the folder... plz help me.....
댓글 수: 0
채택된 답변
Image Analyst
2014년 10월 10일
Try export_fig(): http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
or try getframe().
댓글 수: 0
추가 답변 (1개)
Stephen23
2014년 10월 10일
편집: Stephen23
2014년 10월 10일
댓글 수: 6
Image Analyst
2014년 10월 13일
I would not use the cd function. I'd use fullfile() as per the FAQ.
fullFileName = fullfile(folder, baseFileName);
The FAQ explains further why this is the recommendation: http://matlab.wikia.com/wiki/FAQ#Where_did_my_file_go.3F_The_risks_of_using_the_cd_function.
Stephen23
2014년 10월 13일
편집: Stephen23
2014년 10월 13일
Sure. I was not trying to imply that they should change the Current Folder for just that one operation, but I have noticed that some users do not seem to realize that the Current Folder can be changed at all, yet their work would be much simpler if they simply changed to a more convenient directory.
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!