How can I request the filename of a colour image file from the user in Matlab code???
3 ビュー (過去 30 日間)
古いコメントを表示
How to use matlab code to request the user to add a color image to my current and then load it as a data?? please help
0 件のコメント
採用された回答
Tobias
2013 年 4 月 2 日
function imageInput(imagename)
image = load(imagename)
After this, you can do whatever you want to do with the image. Remember that you have to name your function file the same name as your function.
3 件のコメント
Tobias
2013 年 4 月 2 日
I have only tried the said procedure a few times, as I am quite the novice when it comes to Matlab. However, I would pressume the image have to be located in your current matlab directory (same goes for your function and the file in which you use said function. Your data processing should be done in a separate document different from your function.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!