Accessing imread image in other functiosn in same file

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

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Asked:

on 20 Sep 2018

Commented:

on 21 Sep 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!