Info
此问题已关闭。 请重新打开它进行编辑或回答。
plotting without displaying in an m file which calls another .m file
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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...
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!