how can i express the following question in matlab about save command?
조회 수: 1 (최근 30일)
이전 댓글 표시
Matlab will ask the user if it wants to save it to a file JPEG or PNG image. If so, then it will ask further the user to name the file and save it to the PC respectively
댓글 수: 2
dpb
2019년 5월 13일
And what are you wanting different, exactly?
Save programmatically w/o user interaction, maybe??? Something else?
We can't answer until we understand the problem.
답변 (2개)
vidhathri bhat
2019년 5월 21일
Take the input from the user as to whether he wants jpeg or png image using if-else statement.
prompt = 'input 1-for jpeg 2-for png ';
x = input(prompt)
filename = input('Enter the filename')
if(x==1)
saveas(fig,filename,'jpeg')
else
saveas(fig,filename,'png')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!