代码搜索结果
找到约 10,000 项符合
M 的代码
chap4_8m1.m
function [u]=chap4_8m1(u1,u2,u3)
global s
persistent errori error_1
ts=0.001;
if u3==0
errori=0;
error_1=0;
end
s=2; %Selecting Signal Type
if s==1 %Step Signa
chap4_8m2.m
function [u]=chap4_8m2(u1,u2,u3,u4)
global s
persistent w x1 x2 x3 w_1 w_2 w_3
N=300;
C=5;
if u3==0
w=zeros(N+C,1);
w_1=w;
w_2=w;
d_w=w;
end
alfa=0.04;
if s==1
chap4_8m1.m
function [u]=chap4_8m1(u1,u2,u3)
global s
persistent errori error_1
ts=0.001;
if u3==0
errori=0;
error_1=0;
end
s=2; %Selecting Signal Type
if s==1 %Step Signa
chap4_8m2.m
function [u]=chap4_8m2(u1,u2,u3,u4)
global s
persistent w x1 x2 x3 w_1 w_2 w_3
N=300;
C=5;
if u3==0
w=zeros(N+C,1);
w_1=w;
w_2=w;
d_w=w;
end
alfa=0.04;
if s==1
chap4_8m1.m
function [u]=chap4_8m1(u1,u2,u3)
global s
persistent errori error_1
ts=0.001;
if u3==0
errori=0;
error_1=0;
end
s=2; %Selecting Signal Type
if s==1 %Step Signa
chap4_8m2.m
function [u]=chap4_8m2(u1,u2,u3,u4)
global s
persistent w x1 x2 x3 w_1 w_2 w_3
N=300;
C=5;
if u3==0
w=zeros(N+C,1);
w_1=w;
w_2=w;
d_w=w;
end
alfa=0.04;
if s==1
m_chap3_ex1.m
clear
% 求解单元 1 的刚度矩阵
x=sym ('x'); L1=sym ('L1'); % 定义x和L1为符号变量
E=3e11; I=5.2e-7;
N=[ 1 - 3 * (x^2) / (L1^2) + 2 * (x^3) / (L1^3), x - 2 * (x^2) / L1 + (x^3) / (L1^2),....
m_chap2_ex2.m
clear
t0=0;x0=zeros(6,1);h=0.02;
m=1*eye(3,3); k=1*[3 -1 0;-1 2 -1;0 -1 3];
a=[zeros(3,3),eye(3,3);-inv(m)*k,zeros(3,3)];
j=1;
t=0:h:50;n=length(t);
for i=1:n;
l1=m_chap2_ex2_sub
m_chap3_ex2.m
clear
% 求解单元 1 的刚度矩阵
x=sym ('x'); L1=sym ('L1'); % 定义x和L1为符号变量
E=3e11; I=5.2e-7;
N=[ 1 - 3 * (x^2) / (L1^2) + 2 * (x^3) / (L1^3), x - 2 * (x^2) / L1 + (x^3) / (L1^2),....
m_chap2_ex1.m
t0=0; tN=20; tol=1e-6; y0=[0;0.25];
[t,y]=ode45('m_chap2_ex1_sub',t0,tN,y0,tol);
subplot(121), plot(t,y)
subplot(122), plot(y(:,1),y(:,2))