How to increment index value of variable on every click of Push button?
古いコメントを表示
I want to set variable A1=1 wen user clicks Push Button1,A2=1 wen user clicks second time the same push button,A3=1 wen user clicks same button for third time,,,like this variable index should increase wenever user clicks the push button ,,
採用された回答
その他の回答 (1 件)
Ajay Pherwani
2013 年 3 月 4 日
0 投票
how many variables you have ? are the numbers of variables fixed or they may vary ?
If varibales are fixed : suppose we have A1.. to ..An
Assuming last push button hit made An=1 and what should happen when one more push button hits ?
カテゴリ
ヘルプ センター および File Exchange で Interactive Control and Callbacks についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!