why my code doesnt work?

3 次查看(过去 30 天)
LAXMI PRIYANKA
LAXMI PRIYANKA 2019-10-16
评论: Ni2 2019-10-16
clc;
clear;
clear all;
%read image
imdata=imread('image.jpg');
%show image
imshow(imdata);
  1 个评论
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019-10-16
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.

请先登录,再进行评论。

回答(1 个)

Ni2
Ni2 2019-10-16
Provide full path to the file otherwise keep both image file and matlab file in same location.
  2 个评论
LAXMI PRIYANKA
LAXMI PRIYANKA 2019-10-16
how to provide full path? please help me with the code
Ni2
Ni2 2019-10-16
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by