필터 지우기
필터 지우기

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 CenterFile Exchange에서 Whos에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by