Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

defining a loop for 12 push buttons

조회 수: 1 (최근 30일)
Mahdi Ghourchian
Mahdi Ghourchian 2019년 8월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
I have 12 Push buttons and a table .I want that everytime that operator bring the curser on each push button the information of each push butons appears on the table.I dont want to use the click function.I know how it works.
here is what i defined to set the information on my table.
A = {'Firstname','lastname','age','birth place','maritial satues'};
B = {'jahn','black','23','new york','single'};
data = [A' B'];
set(handles.uitable1,'Data',data);
but this is just for one push buttons.For 12 buttons i have different informations ,like i described .
my question is how can i define a loop for all 12 push buttons?
or do u have maybe a better idea?
Thank u in advance
  댓글 수: 1
Guillaume
Guillaume 2019년 8월 21일
편집: Guillaume 2019년 8월 21일
"I want that everytime that operator bring the curser on each push button"
"I dont want to use the click function"
Assuming that by click function you mean the button callback, then your first statement is exactly what it's for, so why would you not use it?
Whatever the solution is to your problem, it's certainly not going to be a loop.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by