フィルターのクリア

How can I import data from workspace to GUI?

2 ビュー (過去 30 日間)
Fa'
Fa' 2012 年 7 月 6 日
I have written a GUI with GUIDE and now I have to import data from the workspace to my GUI.
Data is a row vector (a signal) but is a field of a struct that contains this signal and others data.
How can I do this operation? Someone can tell me the commands to do this?

採用された回答

TAB
TAB 2012 年 7 月 6 日
In Base workspace
MyStruct.Data = [1 2 3 4 5];
MyStruct.OtherData = 0;
In GUI's function
MyStructHere = evalin('base','MyStruct');
DataHere = MyStructHere.Data;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by