Info

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

plotting without displaying in an m file which calls another .m file

1 回表示 (過去 30 日間)
Mehmet
Mehmet 2014 年 9 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I am running a simualtion from a m file. in this m file, i call another .m file to plot some waveforms. i would like to save those plots without dispaying,
like this
sim ('simulation') scopes_voltages save
here scope voltages is another m file. i do not want to display them, but save them.

回答 (1 件)

Iain
Iain 2014 年 9 月 17 日
saveas will let you save figures. figures can be invisible.
fig = figure('visible','off');
axis_id = gca;
plot(axis_id,1:4,rand(4,4))
saveas(fig,'file.png')
You may have to change scopes_voltages to work...

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by