Create polynomials in MATLAB
1 回表示 (過去 30 日間)
古いコメントを表示
Dear,
I have this polynomial that I should program in MATLAB :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/857340/image.jpeg)
I have for example dv=3, lambda2=0.6 and lambda3=0.4
So, in MATLAB I have to find:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/857345/image.jpeg)
How can I program this please!
0 件のコメント
回答 (1 件)
Image Analyst
2022 年 1 月 8 日
Did you try to just type it out, like
dv = 3;
x = [1, 2] % Whatever....
lamdaVector = [0.6, 0.4];
lambda = 0;
for k = 1 : dv-1
lambda = lambda + lamdaVector(k) * x(k) ^ k
end
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!