How can I insert an image when publishing a document?
74 次查看(过去 30 天)
显示 更早的评论
I would like to publish a MATLAB code into an html and pdf files and I want to insert an image from my computer into the code i.e. NOT a figure from MATLAB.
0 个评论
回答(3 个)
Jared Evans
2020-3-10
Also make sure it's on a new line. Took me an hour to figure out my mistake
%
% <<yourFile.jpg>>
2 个评论
Imola Fodor
2022-3-17
hello, this should also work in the live editor? putting it in a code section?
Jan
2017-8-22
This code inserts a generic image called FILENAME.PNG into your published output.
<<FILENAME.PNG>>
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!