Hello, i need to know how can we add values to our matrix each time i click on a button, i declared a global variable matrix, but each time i have the same values, i used this method in the button_callback
A = [1 2 3;
4 5 6]
newrow = [x y z];
A = [A; newrow]
my problem is that i always have 3*3 matrix even if i'm pushing the button several time so, if you have any idea please help.
thanks and sorry for my bad english
1 Comment
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/410560-add-values-to-my-matrix-each-time-i-click-on-the-button-gui#comment_589709
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/410560-add-values-to-my-matrix-each-time-i-click-on-the-button-gui#comment_589709
Sign in to comment.