MATLAB Answers

How can I read, in matlab, an image I have on my desktp with the imread () function?

3 views (last 30 days)
matlab9000
matlab9000 on 9 Apr 2018
Answered: Wick on 1 May 2018
How can I read, in matlab, an image I have on my desktp with the imread () function?

  0 Comments

Sign in to comment.

Answers (1)

Wick
Wick on 1 May 2018
You must put the name of the image in single quotes in the command. If the image is in a path beneath where MATLAB is currently executing, include the subfolders in the name. If it's somewhere else, use the entire path.
Assuming the file name is image_to_load.png then simply run:
img = imread('image_to_load.png');

  0 Comments

Sign in to comment.


Translated by