How can I insert an image when publishing a document?
75 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (3)
Jared Evans
am 10 Mär. 2020
Also make sure it's on a new line. Took me an hour to figure out my mistake
%
% <<yourFile.jpg>>
2 Kommentare
Imola Fodor
am 17 Mär. 2022
hello, this should also work in the live editor? putting it in a code section?
KL
am 22 Aug. 2017
Bearbeitet: KL
am 22 Aug. 2017
% <<yourFile.jpg>>
4 Kommentare
KL
am 23 Aug. 2017
I tried it on R2015a as well, it works with a jpg file. Probably you're not putting it under a separate section..
<<image1.jpg>>
<<image2.jpg>>
<<image3.jpg>>
and all these images should be in the publishing folder.
Jan
am 22 Aug. 2017
This code inserts a generic image called FILENAME.PNG into your published output.
<<FILENAME.PNG>>
0 Kommentare
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!