why my code doesnt work?
古いコメントを表示
clc;
clear;
clear all;
%read image
imdata=imread('image.jpg');
%show image
imshow(imdata);
1 件のコメント
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
2019 年 10 月 16 日
0 投票
Provide full path to the file otherwise keep both image file and matlab file in same location.
2 件のコメント
LAXMI PRIYANKA
2019 年 10 月 16 日
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.
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!