MATLAB: How to add element in vector

arrayguiguidevector

I have a gui in which there is one edit text box and two buttons namely add and save. I have created on blank vector as v=[]; whenever user press add the value of edit text should be added to the vector? how to do that?

Best Answer

v=[]
a=10
v=[v a]