Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Save PC resources/increase calculating by avoiding showing plots?

1 回表示 (過去 30 日間)
Nik Rocky
Nik Rocky 2020 年 6 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello,
I'm working with multiple data analysis. After every dataset I get four plots what will be displayed.
Its takes 2-3 seconds, each plot.
figure('Name','Measured Data','NumberTitle','on'); hold on myspec(x,Fs); title("Result: " + file_name,'Interpreter','none') hold on p1 = plot(t_ref,m1,'-o','LineWidth',1.5,'Color','r');
.......
hold on pN = plot(t_ref,mN,'-o','LineWidth',1.5,'Color','r');
saveas(gcf, [name, '.png'])
movefile([name, '.png'],FilePath)
Do I save a time/PC resources, when I just create and save this plots (without displaying) and if yes how can I do it?
I do already close all after all, but its just close already opened figures.
Thank you!
  5 件のコメント
Walter Roberson
Walter Roberson 2020 年 6 月 25 日
Yes, provided that SNRname includes the file extension.
Sindar
Sindar 2020 年 6 月 25 日
plot(t,x,'-or',t,y,'-ob','LineWidth',1.5)
legend({'x';'y'})

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by