How to save multiple polynomial to solve in MATLAB app designer?
1 回表示 (過去 30 日間)
古いコメントを表示
Im trying to create an app that will solve polynomials, but first I need to input polynomials, I should be able to input as many polynomials and solve them.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1297410/image.png)
0 件のコメント
回答 (1 件)
Nikhil
2023 年 2 月 22 日
Hi,
MATLAB has a function which will solve polynomials. You can have a look at this page for the function.
Coming to your question, I assume that you want to send multiple polynomials at once and solve them. The function above takes a row vector as an input and returns a column vector by solving the polynomial.
As you need to solve multiple polynomials, you can send in a matrix as an input, where each row represents the coefficents of the polynomial.
Now, write a for loop to iterate over the rows of matrix and call the above function on each row and you get your output.
Hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polynomials についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!