MATLAB: How to get the value of a variable from the base workspace in the GUI?

assignindataevalinguiworkspace

Hi,
i have a large workspace (±400 variables) and i want to write a script for my gui, where i can put in a variable in an edit box, press a button next to it, and then the value of this variable has to appear in an other edit box. I'm really stuck on this, does anybody know how to do this???
Greetings

Best Answer

You can use this:
varName = evalin('base', 'varNameInWorkspace');