how can i express the following question in matlab about save command?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
dpb
le 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.
Réponses (2)
vidhathri bhat
le 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 commentaires
Stephen23
le 21 Mai 2019
[F,P,X] = uiputfile({'*.jpg';'*.png'});
imwrite(A,fullfile(P,F))
0 commentaires
Voir également
Catégories
En savoir plus sur Subplots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!