Problem with gui's data transfer between callbacks

I need to pass data between callback's I have arrays and cells to transport. I couldn't transported them with using guidata or setappdata.
first callback:
setappdata(0,'the',array1);
setappdata(0,'the1',array2);
setappdata(0,'the2',array3);
setappdata(0,'the3',ce);
setappdata(0,'the4',ce2);
setappdata(0,'the5',ce3);
second callback:
array1=getappdata(0,'the');
array2=getappdata(0,'the1');
array3=getappdata(0,'the2');
ce=getappdata(0,'the3');
ce2=getappdata(0,'the4');
ce3=getappdata(0,'the5');
didn't work I dont know why

Respuestas (1)

Stephen23
Stephen23 el 1 de En. de 2017
Editada: Stephen23 el 2 de En. de 2017

1 comentario

Using 0 is legal for setappdata and getappdata. It is the graphics root object for R2014a or previous, and it is still supported as equivalent to groot for R2014b to present (R2016b)

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Preguntada:

el 1 de En. de 2017

Editada:

el 2 de En. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by