How can i build gui for user defined matrix for determinant

조회 수: 2 (최근 30일)
Abdul Ghaffar Bughio
Abdul Ghaffar Bughio 2019년 11월 27일
답변: Image Analyst 2019년 11월 28일
How to design gui for the finding of the determinant of matrix A which will be defined by user at gui
  댓글 수: 2
Katie
Katie 2019년 11월 27일
Could you please provide some more details?
How do you want the user to enter the matrix A? For example, is the user going to enter the matrix elements into a table in the GUI or upload a text or csv file with their matrix?
Do you have a fixed size you'll be using for the matrix A? Do you need to check if the matrix is square or are you assuming it always will be?
Abdul Ghaffar Bughio
Abdul Ghaffar Bughio 2019년 11월 28일
I want to order the matrix mbyn. Means its user's wish for creating the order of matrix. Size should by maximum ten by ten

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

채택된 답변

Image Analyst
Image Analyst 2019년 11월 28일
I'd have a gui with a uitable and a push button and a static text label on it. Let the user fill in the table, then get the matrix and call det. In the pushbutton callback do something like
m = handles.uitable1.Data;
d = det(m);
handles.text1.String = sprintf('The determinant = %f', d);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Performance and Memory에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by