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 日

0 投票

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

3 件のコメント

Rohit Bhoi
Rohit Bhoi 2016 年 2 月 28 日
Thanks sir. need one more help that how to share vector between two function?
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 2 月 28 日
use guidata function
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 件)

カテゴリ

ヘルプ センター および File ExchangeStructures についてさらに検索

質問済み:

2016 年 2 月 28 日

コメント済み:

Jan
2016 年 2 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by