方程:ax+bx^3+cx^5=0
其中a=(k-20)*10^3,b=(k+30)10^3,c=200;
k=1:200;
如何求得k变化时的一组x值。

답변 (1개)

辰希
辰希 2024년 1월 26일

0 개 추천

myroots = zeros(5,200);
for k = 1:200
a = (k-50)*1e3;
b = (k+20)*1e3;
c = 2000;
myroots(:,k) = roots([c 0 b 0 a 0]);
end

카테고리

도움말 센터File Exchange에서 MATLAB 快速入门에 대해 자세히 알아보기

태그

답변:

2024년 1월 26일

Community Treasure Hunt

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

Start Hunting!