Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Save PC resources/increase calculating by avoiding showing plots?

1 Ansicht (letzte 30 Tage)
Nik Rocky
Nik Rocky am 22 Jun. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentare
Walter Roberson
Walter Roberson am 25 Jun. 2020
Yes, provided that SNRname includes the file extension.
Sindar
Sindar am 25 Jun. 2020
plot(t,x,'-or',t,y,'-ob','LineWidth',1.5)
legend({'x';'y'})

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by