How can I save only content of matlab figure ?
Mostra commenti meno recenti
i am using the following code: fig=figure,imshow(RIm); saveas(fig,'22.jpg');
It saves as image but with white border. How can I save only content of the figure.
Risposte (2)
KSSV
il 8 Feb 2017
x = rand(20,1) ;
y = rand(20,1) ;
plot(x,y)
set(gca,'LooseInset',get(gca,'TightInset'));
saveas(gcf,'junk.jpg')
James Tursa
il 9 Feb 2017
0 voti
You might check out this FEX submission by Yair Altman:
Categorie
Scopri di più su Printing and Saving in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!