필터 지우기
필터 지우기

saving simulation results as .bmp

조회 수: 1 (최근 30일)
Mehmet
Mehmet 2014년 9월 12일
댓글: Image Analyst 2014년 9월 12일
I run a simulation from a mfile. there are some scopes in the simulink model and I would like to save these scopes as .bmp. i use saveas(gcf..) command. but at the end it saves another thing.
scopes_currentsDQ
saveas(gcf, ['.\caps\CurrentDQ\', ['CurrentDQ @ Speed=' num2str(SpeedCounter) 'RMS & Torque =' num2str(Torque_Demand) 'Nm'], '.bmp']);
itt does not save the currentsDQ results but a graph of a lookup table which is created before.

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2014년 9월 12일
Hi,
if you have only one scope in your model, it's possible by
hFig = findall(0,'tag','SIMULINK_SIMSCOPE_FIGURE')
saveas(hFig, ...)
Note, that findall used this way finds all scopes ...
Titus
  댓글 수: 2
Image Analyst
Image Analyst 2014년 9월 12일
Mehmet's "Answer" moved here:
Hello, I have a lot of scopes. How can I refer a specific scope?
Image Analyst
Image Analyst 2014년 9월 12일
Try it and see. In that case hFig is probably a 1-D vector of handles. Refer to the one you want by its index.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by