Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Save PC resources/increase calculating by avoiding showing plots?

1 vue (au cours des 30 derniers jours)
Nik Rocky
Nik Rocky le 22 Juin 2020
Clôturé : MATLAB Answer Bot le 20 Août 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 commentaires
Walter Roberson
Walter Roberson le 25 Juin 2020
Yes, provided that SNRname includes the file extension.
Sindar
Sindar le 25 Juin 2020
plot(t,x,'-or',t,y,'-ob','LineWidth',1.5)
legend({'x';'y'})

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by