How to input numeric array into Edit Filed when push button using App Designer?
이전 댓글 표시
I want to put array into Edit Field when I push button in regular order.
It mean, I put value button1=1, and button 2 value is 2, button3 value is 3....
and when I press button 1,3,2 in regular order,
I want to output value like [1 3 2] in Edit Field.
Here is my code,
function Button_9ValueChanged(app, event)
if app.Button_9.Value == 1;
app.EditField.Value = num2str(1)
else app.Button_9.Value == 0;
app.EditField.Value = num2str(0) %I use statebutton
end
I make my code like that button 9 to 15, the value is 1to 7
If there anyone know how to solve this problem, please help me :(
댓글 수: 4
Ajay Kumar
2019년 11월 24일
Are all your buttons state buttons?
jiwon ham
2019년 11월 25일
Ajay Kumar
2019년 11월 26일
So, if the state is on, you want to display the number in editfield? and if state is off, you want to display nothing? or 0?
jiwon ham
2019년 11월 30일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Data Preparation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!