adding string to MATLAB workspace

11 ビュー (過去 30 日間)
Samer Husam
Samer Husam 2012 年 5 月 21 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeVariables についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by