how to add element in vector?

2 次查看(过去 30 天)
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?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2016-2-28
v=[]
a=10
v=[v a]
  3 个评论
Jan
Jan 2016-2-28
@Azzi: I think the code is meaningless, because the v does not have any effects here. The OP inserted this exactly as posted into his code, such that v=10 is performed in every case.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by