Accessing imread image in other functiosn in same file
Show older comments
I am fairly new to matlab. I have read an image using
problemImage = imread("filename")
On my function, I want to access the same file I used in another function. What is the best option, do I have to declare some sort of global variable. If so how?
function selectChannel_Callback(hObject, eventdata, handles)
% Want to access the same image file.
end
3 Comments
Rik
on 20 Sep 2018
If you want to use data in a callback in a GUI, you can use the guidata function to store and retrieve data.
Muhammad Umar
on 20 Sep 2018
Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!