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!