Problem Matlab Ubuntu
5 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone, i have a problem for running matlab in ubuntu with the path directory. I use this form:
Amoy=Average('./TestProcess/') (The function requires the path directory of the images to process)
So, this doesn't work in ubunto but the strange is that same function works perfectly in windows Xp.
The error shows
Error using => imread at 374
If Anyone can help me I will apreciate
Thanks to all
5 件のコメント
Walter Roberson
2021 年 5 月 28 日
Please open a question about installing matlab as it is not relevant to the current topic
回答 (3 件)
Alex Taylor
2011 年 11 月 9 日
To get an answer to your question, you should set a breakpoint at the line where you are calling imread. Examine the full path and filename you are passing to imread. It is very likely be that when you do this, it will be a simple unix path vs. windows path issue.
I'd look at the functions fullfile and filesep for help generating platform agnostic paths.
help fullfile
help filesep
Hope this helps.
Alex.
0 件のコメント
Daniel Shub
2011 年 11 月 9 日
Are all your file separation slashes correct? You can use filesep to handle the / and \ differences. Is the directory your images in readable?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Search Path についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!