From: james bejon on
Dear All, I'm sure it's not that hard, but I can't seem to work out how to expose variables declared outside the scope of a callback within the callback. So, I've got a function like this

function whatever...
% Create a GUI here
OutsideScope = 3;
function popup_Callback(source, ...)
% And I want to be to use Outside Scope here
end
end

Any thoughts?
From: Matt Fig on
OutsideScope IS available to nested functions. So what is the problem?
From: james bejon on
Quite right. I've no idea what I was doing. Perhaps I just spelt a variable wrong. On a related note, though, how do I make it so I can SEE the variables available inside the function in the Workspace window?