How to initialize GUI input from data and user

Hi,
I have a 3x3 matrix for example as my default data. a=[1 2 3; 4 5 6; 7 8 9]
Then I want to calculate an output by combining the default data with user input so that my updated data is a= [1 2 3; 4 5 6; 7 8 9; handles.metricdata.T1 handles.metricdata.T2 handles.metricdata.T3]
How can ! initialize the 'a' without displaying it in my GUI? For your information, I already initialize the handles.metricdata.T1 before.
Thanks, emy

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 11월 20일

0 개 추천

handles.a=[1 2 3; 4 5 6; 7 8 9]
guidata(hObject,handles)
To get the value of a
a=handles.a

댓글 수: 2

Aimi
Aimi 2013년 11월 21일
Thanks for the answer Azzi, but what I mean is
my data matrix a is [1 2 3; 4 5 6; 7 8 9], then for example the user give input 1, 2, and 3= 45, 67, 89 respectively.
My question is, how can I update the new value of matrix a as given the input by user so that
a=[1 2 3, 4 5 6,7 8 9,45 67 89]?
Someone could think up several algorithms to create that output array. What steps did you follow to get it? Also when you say "1, 2, and 3= 45, 67, 89", what do you mean? Do they input that string, including the equal sign? Or do they input 6 separate numbers?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2013년 11월 20일

댓글:

2013년 11월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by