필터 지우기
필터 지우기

how to plot and save graphs in one folder?

조회 수: 2 (최근 30일)
Rakesh Roshan
Rakesh Roshan 2022년 5월 8일
댓글: Image Analyst 2022년 5월 9일
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

답변 (1개)

Image Analyst
Image Analyst 2022년 5월 8일
Create a filename somehow, like with sprintf(). Then use exportgraphics() to save your axes or figure to disk.
  댓글 수: 4
Rakesh Roshan
Rakesh Roshan 2022년 5월 9일
This didn't work out for me
Image Analyst
Image Analyst 2022년 5월 9일
Then try print or saveas

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by