フィルターのクリア

Create polynomials in MATLAB

1 回表示 (過去 30 日間)
high speed
high speed 2022 年 1 月 8 日
回答済み: Image Analyst 2022 年 1 月 8 日
Dear,
I have this polynomial that I should program in MATLAB :
I have for example dv=3, lambda2=0.6 and lambda3=0.4
So, in MATLAB I have to find:
How can I program this please!

回答 (1 件)

Image Analyst
Image Analyst 2022 年 1 月 8 日
Did you try to just type it out, like
dv = 3;
x = [1, 2] % Whatever....
x = 1×2
1 2
lamdaVector = [0.6, 0.4];
lambda = 0;
for k = 1 : dv-1
lambda = lambda + lamdaVector(k) * x(k) ^ k
end
lambda = 0.6000
lambda = 2.2000

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by