how can i find the roots

1 view (last 30 days)
andreas christou
andreas christou on 26 Mar 2019
Answered: James Tursa on 26 Mar 2019
i have that problem and i have to find the roots the range of 0 to 50 the I the matlab export me wrong answers
I= 0:50
roots([0.013 -1*(0.013+I) I]);

Answers (1)

James Tursa
James Tursa on 26 Mar 2019
You could wrap it in a loop. E.g.,
for I= 0:50
r = roots([0.013 -1*(0.013+I) I]);
% do something with r here
end

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!