dir problems
古いコメントを表示
Hi guys
In my project, one of the functions needs to use "dir". It gives me the following error: Index exceeds matrix dimensions.
However, the "dir" works well outside of my project.
I beg you guys' suggestions.
Thanks,
3 件のコメント
Fangjun Jiang
2011 年 9 月 14 日
How does it use the dir()? You need to show it.
zhang
2011 年 9 月 14 日
Fangjun Jiang
2011 年 9 月 14 日
When you run that line in MATLAB Command Window, what did you get?
回答 (1 件)
Sean de Wolski
2011 年 9 月 14 日
It means inside the function you defined a variable as dir.
dbstop if error
Now run your function, it'll blow up
who dir %dir will be a variable
3 件のコメント
Fangjun Jiang
2011 年 9 月 14 日
Hah, that must be it! +1
Vishnu Narang
2016 年 9 月 2 日
I faced the same issue. i've updated the code but it still gives the error. There is no variable named dir now. Is there anything in matlab to clear cache or something of those sorts to get it working?
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!