why my code doesnt work?

1 visualización (últimos 30 días)
LAXMI PRIYANKA
LAXMI PRIYANKA el 16 de Oct. de 2019
Comentada: Ni2 el 16 de Oct. de 2019
clc;
clear;
clear all;
%read image
imdata=imread('image.jpg');
%show image
imshow(imdata);
  1 comentario
Sulaymon Eshkabilov
Sulaymon Eshkabilov el 16 de Oct. de 2019
Hi,
Make sure that your file extension is correct: jpg not jpeg
Make sure that your image file name is speleld correctly
Make sure that your image file is in your currect working directory
Good luck.

Iniciar sesión para comentar.

Respuestas (1)

Ni2
Ni2 el 16 de Oct. de 2019
Provide full path to the file otherwise keep both image file and matlab file in same location.
  2 comentarios
LAXMI PRIYANKA
LAXMI PRIYANKA el 16 de Oct. de 2019
how to provide full path? please help me with the code
Ni2
Ni2 el 16 de Oct. de 2019
For example:
'C:\Users\ni2linkha\Desktop\image.jpg'
Right click the image icon and select properties. See for location you can find its full path there.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by