how can i find the roots

1 次查看(过去 30 天)
andreas christou
andreas christou 2019-3-26
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]);

回答(1 个)

James Tursa
James Tursa 2019-3-26
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

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by