Why cant i plot an image in matlab?

I'm trying to plot an image in MatLab and I'm using this :
img = imread('download.jpg'); image([0.1 -0.1],[0.1 -0.1],img);
For some reason my picture isn't showing up because MatLab cant find 'download.jpg', but I know I specifically saved a picture by this name. How am I supposed to save pictures so they can be displayed in MatLab?

回答 (1 件)

Nitin Narayanan
Nitin Narayanan 2016 年 10 月 3 日

0 投票

Is your "download.jpg" image, in the same folder as that of your matlab workspace?

3 件のコメント

Nitin Narayanan
Nitin Narayanan 2016 年 10 月 3 日
It worked for me as when i tried to plot the image.
Emily Smith
Emily Smith 2016 年 10 月 3 日
no it was not saved in the same folder, perhaps that is the problem...
Nitin Narayanan
Nitin Narayanan 2016 年 10 月 5 日
Hope it worked for you

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2016 年 10 月 3 日

コメント済み:

2016 年 10 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by