Error in the total number of file count
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everyone!
I need to make the dicom file count in a directory and i try the following code:
dirname = uigetdir([]);
d = dir([dirname, '\*.dcm']);
but always gives me the error
" Index exceeds matrix dimensions."
Anyone know how i can fix it?
Thanks
0 件のコメント
採用された回答
Sean de Wolski
2015 年 5 月 28 日
編集済み: Sean de Wolski
2015 年 5 月 28 日
which dir
which uigetdir
You might have shadowed "dir" or "uigetdir". Clear/rename that variable/function and try again.
If this isn't it then you've likely shadowed a common function which uigetdir/dir is using. Run the following to set the state to stop on errors. Repeat what you're doing and it will stop and you can see what variable/function is causing the error and where.
dbstop if error
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!