Create polynomials in MATLAB
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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!
0 comentarios
Respuestas (1)
Image Analyst
el 8 de En. de 2022
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 comentarios
Ver también
Categorías
Más información sobre Polynomials en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!