Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to add an image as it's shown in this example:
http://www.mathworks.com/help/fuzzy/examples/fuzzy-logic-image-processing.html#zmw57dd0e2480
And I write this: Irgb = imread('*here is the name of the image.jpg*');
but Matlab can't find the file. The file(the image) is on my USB memory. How can i load it on Matlab?
Posted
Comments
virusstorm 18-May-15 14:59pm    
the imread function allows to pass the entire path of the into it, otherwise it uses relative paths.
Ahsan Abbas 30-Jul-15 14:13pm    
Use this syntax
Irgb = imread('pathaddress/filename.jpg');
actually its finding the file in it's respective folder, so you have to add the full file folder path and corresponding file name to be load.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900