How do I display an images - .jpg ?

26 views (last 30 days)
Ted
Ted on 2 Sep 2012
Commented: Walter Roberson on 4 Apr 2019
I want to display an image that shows what the programs I create are solviing, How do I import or view a file .jpg or any format? I've used imageview but it only shows half of the picture.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 2 Sep 2012
data=imread('image.jpg')
imshow(data)
  4 Comments
Yara Srinivas
Yara Srinivas on 6 Feb 2019
i=imread('boy.jpg');
imshow(i)
Error: File: image.m Line: 1 Column: 5
Unexpected MATLAB expression.
This error was showing.
How can i solve this problem
Walter Roberson
Walter Roberson on 4 Apr 2019
You accidentally created your own image.m file that is interfering with MATLAB's image function.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!