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