代码搜索:CLOSE
找到约 10,000 项符合「CLOSE」的源代码
代码结果 10,000
www.eeworm.com/read/438605/7729313
m chap10_3plot.m
close all;
figure(1);
plot(t,e,'r');
xlabel('time(s)');ylabel('error');
figure(2);
plot(t,y(:,1),'r',t,y(:,2),'b');
xlabel('time(s)');ylabel('position tracking');
figure(3);
plot(t,dy(:,
www.eeworm.com/read/438605/7729364
m chap3_10plot.m
clear all;
close all;
L1=-pi/6;
L2=pi/6;
L=L2-L1;
T=L*1/1000;
x=L1:T:L2;
figure(1);
for i=1:1:3
gs=-[(x+pi/6-(i-1)*pi/6)/(pi/12)].^2;
u=exp(gs);
hold on;
plot(x,u);
end
xlab
www.eeworm.com/read/438601/7729482
m chap7_4.m
clear all;
close all;
nl_pid0=[0 0 0];
options=[1 0.01 0.01];
nl_pid=lsqnonlin('chap7_4f1',nl_pid0,options)
www.eeworm.com/read/438437/7731385
c cssrv.c
/* checkpoint server */
#include "cs.h"
static char *ckptdir = "/tmp";
static int
reuseaddr(int sd)
{
int optval = 1;
if (0 > setsockopt(sd, SOL_SOCKET, SO_REUSEADDR,
&optval, sizeof(optval)
www.eeworm.com/read/438370/7732052
m exp2_17.m
%************
%exp2_17.m
%功能:半对数坐标图形与线性坐标图形的比较
%************
clear
close
clc
x=0:0.1:1;
y=10.^x;
subplot(211)
semilogy(x,y)
title('semilogarithmic scales gragh')
grid on
subplot(212)
plo
www.eeworm.com/read/438370/7732053
m exp2_5.m
%绘制单位圆
clear
close all
clc
%定义时间范围
t=[0:0.01:2*pi];
x=sin(t);
y=cos(t);
plot(x,y)
axis([-1.5 1.5 -1.5 1.5])
%限定x轴和y轴的显示范围
grid on
axis('equal')
www.eeworm.com/read/438370/7732054
m exp2_3_.m
%plot绘图命令的使用
close all %关闭打开了的所有图形窗口
clc %清屏命令
clear %清除工作空间中所有变量
%定义时间范围
t=[0:pi/20:8*pi];
y=sin(t);
plot(t,y,'b:square')
% r表示线的颜色为红色,此外 y(黄色)g(绿色)b(蓝色)
%
www.eeworm.com/read/438370/7732119
m exp1_2.m
%问题:已知典型二阶系统的传递函数为G(s)=wn^2/(s^2+2*i*wn+wn^2),试绘制当wn=4时,
%i分别为0.1,0.2,...,1.0,2.0时的系统的单位阶跃响应。
close
clear
clc
wn=4;
kosai=[0.1:0.1:1,2];
figure(1)
hold on
for i=kosai
num=wn*wn;
den=[
www.eeworm.com/read/438370/7732124
m exp4_15.m
% exp4_15.m
clear
close all
clc
% 状态空间系统描述
a=[-0.6 -1.04 0 0;1.04 0 0 0;0 0.96 -0.7 -0.32;
0 0 0.32 0];
b=[1 0 0 0]';
c=[0 0 0 0.32];
d=0;
% 图1绘制波特图
figure(1)
bode(a,b,c,d);
% 图2绘制幅相曲线
www.eeworm.com/read/438370/7732126
m exp4_14.m
% exp4_14.m
clear
close all
k=26;
z=[];
p=[-6 1];
[num,den]=zp2tf(z,p,k);
figure(1)
subplot(211)
nyquist(num,den)
subplot(212)
pzmap(p,z)
figure(2)
[numc,denc]=cloop(num,den);
step(numc,