From: james bejon on 24 Mar 2010 19:41 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 24 Mar 2010 20:05 OutsideScope IS available to nested functions. So what is the problem?
From: james bejon on 26 Mar 2010 10:43 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?
|
Pages: 1 Prev: Image too big: the image is scaled, but i need the true values Next: GMM estimation file |