How do I display an images - .jpg ?

24 vues (au cours des 30 derniers jours)
Ted
Ted le 2 Sep 2012
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.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 2 Sep 2012
data=imread('image.jpg')
imshow(data)
  4 commentaires
Yara Srinivas
Yara Srinivas le 6 Fév 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 le 4 Avr 2019
You accidentally created your own image.m file that is interfering with MATLAB's image function.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by