Hi, is there is a way I can add sting to my workspace ? and how can I read the workspace value ? in other hand, how to display this value in GUI static text ???
thanks a lot guys :)

 채택된 답변

Daniel Shub
Daniel Shub 2012년 5월 21일

1 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by