How can I save data in a GUI?
Afficher commentaires plus anciens
Hi all! I'm implementing a GUI with GUIDE but I have some troubles. The first problem is to load data from the workspace. Data is a struct. This is the code I've writenn:
EEGHere = evalin('base','EEG'); DataHere = EEGHere.data;
is it right? Can I use the DataHere inside GUI function?
The second problem is that I want to save in a row vector, a row from matrix DataHere. The row vector to save, is the return of an edit in GUI (users write a number that correspond to a row of matrix). I've tried to write this command:
channel = get(handles.editchannel); signal = DataHere(channel,:);
but displays this error ??? Error using ==> subsindex Function 'subsindex' is not defined for values of class 'struct'.
How can I do?
Réponse acceptée
Plus de réponses (1)
Fa'
le 19 Juil 2012
0 votes
Catégories
En savoir plus sur Structures dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!