Matlab Publish Image PDF -
i want include image of simulink diagram when publish script. print image , manually add together in later.
i read on matlab website including comment <<filename.jpg>>
, publishing tool pick , add together report. unfortunately add together link image, not helpful when printing out.
this have:
print(['-s',simname], '-djpeg', ['html/',simname,'.jpg']) % <<simname.jpg>>
i've tried these tips before, didn't work me either.
what have tried should work. in fact should work jpg file. have tried illustration documentation?
to produce html file containing surfpeaks.jpg
matlab file:
html
in current folder. create surfpeaks.jpg
running code in command window. saveas(surf(peaks),'html/surfpeaks.jpg');
publish matlab code html. %% image illustration % graphic: % % <<surfpeaks.jpg>> %
the alternative open simulink scheme open_system
. create snapshot of model in published html provided model closed when open_system
command issued.
%% include snapshot of f14 model % open_system('f14') %
if none of these work, there's fundamentally wrong matlab installation, of way using publish command.
matlab publish simulink
No comments:
Post a Comment