How can I request the filename of a colour image file from the user in Matlab code???
2 次查看(过去 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 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!