Set position of image in matlab code PDF
Afficher commentaires plus anciens
Hello,
I am very happy with using matlab, I use it for solving exercises which I then convert to PDF for easy access. However, when i use the command imshow("picture.jpg") a specific place in the Matlab code, the PDF always place it at the bottom of the section instead of where the code is written. Is there a way to set the position of an image in a PDF doc?
Thank you.
3 commentaires
Vilém Frynta
le 6 Jan 2023
Modifié(e) : Vilém Frynta
le 6 Jan 2023
Hello,
although I have no experience with making pdfs via Matlab, I believe that images and their position could be edited via figure settings (just like plots).
Perhaps, you could try looking up something about figures.
Maybe if you shared piece of your code, it would help me understand your problem better.
Hope I helped.
Mia Vesterager
le 6 Jan 2023
Mia Vesterager
le 6 Jan 2023
Réponses (1)
Sulaymon Eshkabilov
le 7 Jan 2023
This can be achieved using %%, e.g.:
% Image is shown here after the command imshow()
imshow("MY_image.jpg")
%% Simulation results
A = magic(3);
B=A.^3
fprintf('Time: %13c \n', now)
Catégories
En savoir plus sur Image Type Conversion dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!