Dear Friends! I need to find roots of polynomials with variable coefficients, The command I used is(adsbygoogle = window.adsbygoogle || []).push({});

w=0:50

A=w^2

B=w^3+2

C=w+2*w^2

D=w

E=w./2

ss=[A B C D E]

xi=roots(ss)

by this I find all the roots of equation,

I want to find velocities by setting

v1=w/xi(1)

v2=w/xi(2)

v3=w/xi(3)

v4=w/xi(4)

v5=w/xi(5)

and plot (w,v1)

the plot is straight line which is because the velocities i found is not the same as I need because of command xi(1). . . . I need list of values for v1, . . .

Can any one please guide me in syntax error I used...

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Roots of Polynomials by loop in matlab

Tags:

Loading...

Similar Threads for Roots Polynomials loop |
---|

Mathematica Looping through vectorized functions for a piecewise solution |

Mathematica While Loop in Mathematica |

Mathematica Polynomial expansion from Python to Mathematica |

MATLAB Associated Legendre Polynomial of 1st and 2nd kind |

**Physics Forums | Science Articles, Homework Help, Discussion**