While you can do these things. Please don't.
To assign a string to your workspace:
assignin('base', 'mystr', 'Hello World')
To read the workspace value
evalin('base', 'mystr')
To set the value to a GUI text box with handle h
set(h, 'String', evalin('base', 'mystr'))
Again, please don't do this.