How to save matlab plot automatically into a folder as a JPG
149 ビュー (過去 30 日間)
古いコメントを表示
Hello I have csv data file and I am plotting it but I need to save this plot as JPG into a folder automatically, how can I do that ?
13 件のコメント
回答 (1 件)
Shivang Srivastava
2021 年 4 月 21 日
As per my understanding you wanted to save a plot as a jpg file into a folder. I tried to reproduce the error you are facing but the error was not reproducible at my end.
data = csvread('test.csv');
wavelength = data(:,1);
intensity = data(:,2);
plot(wavelength, intensity);
ylabel('wavelength');
xlabel('intensity');
title('wavelength-intensity');
saveas(gcf,'C:\test.jpg','jpg')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!