请问我这个编的程序为什么结果只有一个数
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 投票

仅供参考,两个for里中循环节里的分号;改成冒号
for m=1;5;
for n=1;3;

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!