Matlab GUI - Enter variable name in the Edit Text box

4 ビュー (過去 30 日間)
F.L.
F.L. 2016 年 10 月 20 日
コメント済み: F.L. 2016 年 10 月 20 日
Hi, I'm a newbie of the matlab environment, especially for GUI. I'm writing this little script and I need that the user can enter the NAME of a variable (saved in the workspace and already "evalin" in GUI) in an editable text box. So, that's the issue: how I can recall the VALUE of that variable (which is a MATRIX) and use it in the script? Thank you!
  2 件のコメント
F.L.
F.L. 2016 年 10 月 20 日
Thanks for your comment Adam, but that's what I need. I run a similar procedure using just a script in the workspace and there you can easily use the input command to ask the user. But I have troubles with GUI.

サインインしてコメントする。

回答 (1 件)

Pritesh Shah
Pritesh Shah 2016 年 10 月 20 日
You can save in .mat file and load data in script.
check doc save and doc load in matlab command
  1 件のコメント
F.L.
F.L. 2016 年 10 月 20 日
Thank you, but how I can save the matrix? I mean, If I try to save, uisave just save the name of the variable (entered in the text box) and not the variable itself.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by