How can I import data from workspace to GUI?

1 visualización (últimos 30 días)
Fa'
Fa' el 6 de Jul. de 2012
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?

Respuesta aceptada

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

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by