Matlab 方程根 绘图

学习 时间:2026-04-06 19:44:03 阅读:2255
Matlab 方程根 绘图st=pi/2;a=27;b=35;c=250;F=200;bt=0.75*pi-st;k=(a*sin(st))/((a^2*cos(st)^2-a^2+b^2)^0.5);A=[-1,0,k;0,-1,1;a*cos(st),a*sin(st),0];b=[-F*cos(bt),F*sin(bt),F*c]';x=sym(A)\sym(b)xx=A\b;要求 st=pi/2:pi/90:pi/18;时候 分别得到st与xx(1),xx(2),xx(3),的图,st为横坐标,单独的图标和三条曲线在一起的图标都要得到,也就是求方程Ax=b的解,求xx(1),xx(2),xx(3)和st的关系图

最佳回答

标致的睫毛膏

端庄的时光

2026-04-06 19:44:03

st=pi/18:pi/90:pi/2;number=size(st,2);xx=zeros(3,number);for current=1:1:number% st=pi/2;st_c=st(current);a=27;b=35;c=250;F=200;bt=0。75*pi-st_c;k=(a*sin(st_c))/((a^2*cos(st_c)^2-a^2+b^2)^0。5);A=[-1,0,k;0,-1,1;a*cos(st_c),a*sin(st_c),0];b=[-F*cos(bt),F*sin(bt),F*c]';% x =sym(A)\sym(b);xx(:,current)=A\b;endplot(st,xx(1,:),'-b',st,xx(2,:),'-r',st,xx(3,:),'-g');legend('xx(1)','xx(2)','xx(3)');单独的图只要分别plot(st,xx(1,:),'-b');plot(st,xx(2,:),'-r');plot(st,xx(3,:),'-g');就行了

最新回答共有2条回答

  • 风中的外套
    回复
    2026-04-06 19:44:03

    st=pi/18:pi/90:pi/2;number=size(st,2);xx=zeros(3,number);for current=1:1:number% st=pi/2;st_c=st(current);a=27;b=35;c=250;F=200;bt=0。75*pi-st_c;k=(a*sin(st_c))/((a^2*cos(st_c)^2-a^2+b^2)^0。5);A=[-1,0,k;0,-1,1;a*cos(st_c),a*sin(st_c),0];b=[-F*cos(bt),F*sin(bt),F*c]';% x =sym(A)\sym(b);xx(:,current)=A\b;endplot(st,xx(1,:),'-b',st,xx(2,:),'-r',st,xx(3,:),'-g');legend('xx(1)','xx(2)','xx(3)');单独的图只要分别plot(st,xx(1,:),'-b');plot(st,xx(2,:),'-r');plot(st,xx(3,:),'-g');就行了

上一篇 屈服极限与力的关系,屈服极限不是等于力/有效面积吗?怎么有的地方说屈服极限就是在某种情况下所受到的力呢?

下一篇 二十世纪七十年代世界格局表现怎样发展趋势