Filter löschen
Filter löschen

how to plot and save graphs in one folder?

2 Ansichten (letzte 30 Tage)
Rakesh Roshan
Rakesh Roshan am 8 Mai 2022
Kommentiert: Image Analyst am 9 Mai 2022
i have saved my file here as 452.txt . I want to plot my graphs in some what similiar way as file.JPG and save all figures into one folder (Folder name="Figures') and name of each figure should be as ('1') ('2') ('3')
inputdata=('S11ouput')
freq=inputdata=(:,1);
sparam=inputdata(:,2);
plot(freq,sparam);ylabel('sparam');xlabel('freq')
% my freq is in GHz and sparam are in approx 1e^-3
% how to get ylim in decimal places like 0.00032 0.00034 0.00035

Antworten (1)

Image Analyst
Image Analyst am 8 Mai 2022
Create a filename somehow, like with sprintf(). Then use exportgraphics() to save your axes or figure to disk.
  4 Kommentare
Rakesh Roshan
Rakesh Roshan am 9 Mai 2022
This didn't work out for me
Image Analyst
Image Analyst am 9 Mai 2022
Then try print or saveas

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by