Problem variable doesn't appear/refresh in the variable editor
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone
I have a problem, I have a GUI function where a table of data (cell 1152,6) is display When I select cell and click on a button, I should annoted the column 6 with a string : "R-1"
For example : my table at the begining is like that:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154881/image.png)
when I select cells and click on the button the callback of the button is:
choixRejet = 'R-1'
for i=1:length(cellSel)
infra.capteur(3,1).data.tabRejet{cellSel(i),6}=choixRejet;
end
It works well when I display the new table (tabRejet):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154883/image.png)
But my problem is that when I go to the workspace and look at the infra.capteur(3,1).data.tabRejet the colomn 6 stay empty, there are no R-1, while when I print infra.capteur(3,1).data.tabRejet in the code I do:
for i=1:length(cellSel)
infra.capteur(numCapteur,1).data.tabRejet{cellSel(i),6}=choixRejet;
end
%affichage en rouge des timestamps rejetés
tab=infra.capteur(numCapteur,1).data.tabRejet;
numCapteur
infra.capteur(numCapteur,1).data.tabRejet,
My R-1 appears?!??!??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154885/image.png)
Why it doesn't appears in the variable in the workspace? My variable infra is define as global in main.m and I annotate it in a gui myFile.m
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!