How to get a matrix in GUI as an input

조회 수: 15 (최근 30일)
Pouyan
Pouyan 2013년 1월 15일
댓글: Poorna Chandar Reddy 2014년 7월 11일
I am going to make a GUI and in my code I need to get a 3*3 matrix as an input. I prefer to have something like a 3*3 table with empty slots and user could be able to fill the slots that would be the input for my matrix. please tell me how to do this.
  댓글 수: 1
Jan
Jan 2013년 1월 15일
Do you create the GUI by GUIDE or programmatically? What have you tried so far? Which problems occurred?

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

답변 (2개)

Shashank Prasanna
Shashank Prasanna 2013년 1월 15일
Are you looking at an editable table? If you are then this file central submission must be of some help:
If you just want to programmatically input a matrix via an input argument and then display it in a table then you can use UITABLE as described in the documentation:
and say set(t,'Data',my_input_matrix)
and you should see it displayed.
  댓글 수: 1
Poorna Chandar Reddy
Poorna Chandar Reddy 2014년 7월 11일
편집: Poorna Chandar Reddy 2014년 7월 11일
Hai Shashank Bro. .. i need help to create table of boxes. . i.e., matrix of boxes. .
>>

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


Image Analyst
Image Analyst 2013년 1월 15일
You can use GUIDE. There is an icon for a table. Click it and draw out a table on your GUI. Then your user runs your program and fills out the table. Then to get the data in your code (for example in the callback function of a push button), you do this:
tableData = get(handles.uitable1, 'Data');
  댓글 수: 3
Obikaonu Kelechi
Obikaonu Kelechi 2014년 5월 28일
Please I also have a similar problem but from the look of things I won't be needing a UItable because I am not displaying the result of the matrix operation. So my problem is how do I make my text boxes accept random matrices...Thanks.
Poorna Chandar Reddy
Poorna Chandar Reddy 2014년 7월 11일
Sir. .. i need help to create table of boxes. . i.e., matrix of boxes. .
>>

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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by