How to save an image using a push button on MATLAB gui
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi,
I have just started working with MATLAB GUI. I can open an image, process the image but unable to save the image to a destination folder.
Any help will be appreciated.
댓글 수: 0
채택된 답변
Walter Roberson
2015년 8월 26일
[filename, foldername] = uiputfile('Where do you want the file saved?');
complete_name = fullfile(foldername, filename);
imwrite(TheArray, complete_name);
댓글 수: 6
Image Analyst
2017년 3월 19일
They are returned from uiputfile() - it's whatever the user chose. You can also use imsave() instead of uiputfile().
Walter Roberson
2017년 3월 19일
In other words they are not constants, they are values returned by the uigetfile routine according what the user chooses.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!