フィルターのクリア

folder specification using fullfile

2 ビュー (過去 30 日間)
Mahalakshmi
Mahalakshmi 2011 年 7 月 5 日
img1=('C:\Users\Public\Pictures\Desert.jpg'); f=fullfile('C:','Users','Public','Pictures'); img2=imread(f,Desert.jpg);
I can read img1 but img2 cannot be read due to the following error Can't open file "C:\Users\Public\Pictures" for reading; you may not have read permission.
I right clicked on the folder properties and changed it from read only but it gets changed automatically every time. Please let me know how I can get it to open..Thanx in advance..

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 7 月 5 日
Well, use fullfile() again.
img2=imread(fullfile(f,'Desert.jpt'));
  1 件のコメント
Mahalakshmi
Mahalakshmi 2011 年 7 月 5 日
oops..gotcha..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by