How to add a .png image to be published as a pdf output file

10 views (last 30 days)
NeGM
NeGM on 21 Oct 2021
Commented: NeGM on 21 Oct 2021
Hi everyone,
Im trying to add an image to my document but I keep getting an error
[ERROR] FOUserAgent - Image not found. URI: file:///Part1.jpg. (See position -1:-1)
[ERROR] FOUserAgent - Image not found. URI: file:///Part1.jpg. (No context info available)
my code is the following:
%% 1. System Description
%
% <<Part1.png>>
%
I have my image in the same folder as my .m file. Any help is appreciated. Thank you in advance!

Answers (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov on 21 Oct 2021
Note the file extension - Part1.jpg
That looks like that in your code the file extension is NOT *.png but *.jpg
Your image file extension is *.png
  1 Comment
NeGM
NeGM on 21 Oct 2021
Hi, I actually had both files in my folder
1- Part1.jpg
2 - Part1.PNG
Neither works. I have the following code:
%% 1. System Description
%
% <<Part1.PNG>>
%
and Im still getting:
[ERROR] FOUserAgent - Image not found. URI: file:///Part1.PNG. (See position -1:-1)
[ERROR] FOUserAgent - Image not found. URI: file:///Part1.PNG. (No context info available)

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!