How can i build gui for user defined matrix for determinant
9 ビュー (過去 30 日間)
古いコメントを表示
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
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?
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!