matlab循环求解。
이전 댓글 표시
请问我这个编的程序为什么结果只有一个数
clc;
clear all;
close all;
c=[0
50
100]
l=[1968
2460
2952
3690
4428]
jie=zeros(5,3)
for m=1;5;
for n=1;3;
syms N
e=363;E=196281.78;I=65.58*10000;y=100;
k=sqrt(1000*N/E/I)
u=k*l(m)/2
f=y.*(1000*N.*cos(u)+10e5*c(n)*k.*sin(u))-1000*N*e+1000*N*e.*cos(u)
% ezplot(f,[0,200,0,1000])
jie(m,n)=vpasolve(f,N,[20,1000])
end
end

채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!