How can I do this polynomial with sympolic in matlab

How can I do this polynomial with sympolic in matlab
Z= P­0 x0 + P­1 x1 +P­2 x2 + P3 x3 +…….=

2 Kommentare

Torsten
Torsten am 19 Jan. 2023
Bearbeitet: Torsten am 19 Jan. 2023
Unclear.
Which polynomial ?
How can I do this polynomial with sympolic in matlab
Z= P­0 x0 + P­1 x1 +P­2 x2 + P3 x3 +…….=

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

p = sym('P',[1 4]) ;
x = sym('x',[1 4]) ;
f = p*x.'
f = 

4 Kommentare

Thank you so much my dear freind
but how we do with p^0 .x0 +P^1 .x1+P^2.x+P^3.x3
syms p
x = sym('x',[1 4]) ;
n = 0:length(x)-1 ;
f = p.^n*x.'
f = 
Many thanks my dear friend
KSSV
KSSV am 20 Jan. 2023
Thanks is accepting/ voting the answer.. :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 20 Jan. 2023

0 Stimmen

if you have numeric coefficients see poly2sym()

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by