how can i express the following question in matlab about save command?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
dpb
am 13 Mai 2019
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.
Antworten (2)
vidhathri bhat
am 21 Mai 2019
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 Kommentare
Stephen23
am 21 Mai 2019
[F,P,X] = uiputfile({'*.jpg';'*.png'});
imwrite(A,fullfile(P,F))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing and Computer Vision finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!