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