Include Simulink model Image when publishing an mfile
이전 댓글 표시
I Have an mfile where i read data from a simulink model and i plot them. I want to publish the results in html, but i also want the simulink model to be displayed (as an image), not just the plots. How should i do it? The mfile is as follows:
%% The results of the simulation of the above model
plot(x,y)
figure;plot(x,z)
figure;plot(y,z)
I can of course take a snapshot and use a command to display it, but I want a more elegant way.
채택된 답변
추가 답변 (1개)
Sean de Wolski
2014년 6월 12일
You can use open_system to open the system. Then publish will handle it automagically:
open_system('vdp')
댓글 수: 2
Lazaros Moysis
2014년 6월 13일
Neil Foxman
2018년 11월 13일
I was still having trouble with this and I learned that you need to first close the Simulink model before you can publish it.
Then open_system() should work fine.
The answer was buried in one of ihavenoclue's comments here: https://stackoverflow.com/questions/26549147/matlab-publish-image-pdf/53288890#53288890
카테고리
도움말 센터 및 File Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!