I am doing a GUI and I am loading a .mat file with the data i need. So I call the file with load('file.mat') in the openingFcn. But when I want to use the data in another function like a callback button it does not find the variables and i have to load the file again in each function.
is there a specific place where I should load the file so it becomes global?
Best Answer