亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? diskdemo.m

?? 經典通信系統仿真書籍《通信系統與 MATLAB (Proakis)》源代碼
?? M
字號:
%DISKDEMO.M Demonstration design of harddisk digital controller.
echo on

% This file demonstrates MATLAB's ability for classical digital control
% system design by going through the design of a computer HARDDISK 
% read/write head position controller.

echo off
%	Copyright (c) 1986-93 by the MathWorks, Inc.
echo on

pause % Press any key to continue ...

% Using Newton's law, the simplest model for the read/write head has the 
% following differential equation:
%
%  I*theta_ddot + C*theta_dot + K*theta = Ki * i
%
%  where I is the inertia of the head assembly
%        C is the viscous damping coefficient of the bearings
%        K is the return spring constant
%        Ki is the motor torque constant
%        theta_ddot, theta_dot, and theta are the angular acceleration,
%          angular velocity and position of the head
%	i is the input current
%

pause % Press any key to continue ...

% Taking the laplace transform, the transfer function is:
%                Ki
%  H(s) = ----------------
%         I s^2 + C s + K
%
% Using the values I=.01 Kg m^2, C=.004 Nm/(rad/sed), K=10 Nm/rad,  and
% Ki=.05 Nm/rad form the transfer function description of this system

I = .01; C = 0.004; K = 10; Ki = .05;
NUM = [Ki];
DEN = [I C K];
printsys(NUM,DEN,'s');

pause % Press any key to continue ...

% Our task is to design a digital controller that can be used to provide 
% accurate positioning of the read/write head.  We will do the design in the
% digital domain.  

% First we must discretize our plant since it is continuous.  Since our
% plant will have a digital-to-analog-converter (with a zero-order hold)
% connected to its input, use the 'zoh' discretization method
% of the function C2DM. Use sample time Ts = 0.005  (5 ms)

Ts = 0.005;
w = logspace(0,3);
[mag,phase] = bode(NUM,DEN,w);
[num,den] = c2dm(NUM,DEN,Ts,'zoh');
[mzoh,pzoh,wzoh] = dbode(num,den,Ts);

% Now plot the results as a comparison.  Press any key after the plot ...
echo off
subplot(211)
semilogx(w,20*log10(mag),wzoh,20*log10(mzoh))
xlabel('Frequency (rad/sec)'), ylabel('Gain db')
title('c2d comparison plot')

subplot(212)
semilogx(w,phase,wzoh,pzoh)
xlabel('Frequency (rad/sec)'), ylabel('Phase deg')
pause % Press any key to continue ...
echo on

pause % Press any key to continue ...

% Now analyze the discrete system.
disp('Discrete system')
printsys(num,den,'z')

% Plot step response
subplot(111)
dstep(num,den); pause % Press any key after the plot ...

% The system oscillates quite a bit.  This is probably due to very light
% damping.  We can check this by computing the open loop eigenvalues.

disp('Open loop discrete eigenvalues'), ddamp(den,Ts); 
zgrid('new'), pzmap(1,den); pause % Press any key after the plot ...

% Note that the poles are very lightly damped and near the unit circle.
% We need to design a compensator that increases the damping of this system.

% Let's try to design a compensator.  The simplest compensator is a simple gain.
rlocus(num,den); hold off; pause % Press any key after the plot ...

% As shown in the root locus, the poles quickly leave the unit circle and go
% unstable.  We need to introduce some lead or a compensator with some zeros.
% Try the compensator:        K(z + a)
%                     D(z) = --------  where a < b
%                             (z + b)

pause % Press any key to continue ...

% Form compensator and connect in series with our plant
% Use a = -.85 and b = 0.
[numc,denc] = zp2tf([.85 ]',[0]',1);
[num2,den2] = series(numc,denc,num,den);

% Lets see how the frequency response has changed.
[mag,phase,w] = dbode(num,den,1);	% Use normalized frequency
[mag2,phase2] = dbode(num2,den2,1,w);

% Now plot a comparison plot.  Press any key after the plot ...
echo off
subplot(211), semilogx(w,20*log10(mag),w,20*log10(mag2))
xlabel('Frequency (rad/sec)'), ylabel('Gain dB')
subplot(212), semilogx(w,phase,w,phase2)
xlabel('Frequency (rad/sec)'), ylabel('Phase deg')
% Plot -180 degree line
hold on; semilogx([min(w(:)),max(w(:))],[-180,-180],'w--'); hold off;
pause % Press any key to continue ...
echo on

% So our compensator has indeed added lead.

% Now let's try the root locus again with our compensator
subplot(111)
zgrid('new'), rlocus(num2,den2); hold off; pause % Press any key after plot ...

% This time the poles stay within the unit circle for some time.
% Now its your turn, Using RLOCFIND chose the poles with greatest damping
% ratio.  (The lines drawn by ZGRID show the damping ratios from z=0 to 1
% in steps of .1)

pause % Press any key and then choose a point on the plot
[k,poles] = rlocfind(num2,den2);

disp(['You chose gain: ',num2str(k)]), ddamp(poles,Ts);

% Let's form the closed loop system so that we can analyze the design.
[numc,denc] = feedback(num2,den2,k,1);

% These eigenvalues should match the ones you chose.
disp('Closed loop eigenvalues'), ddamp(denc,Ts);

pause % Press any key to continue ...

% Closed loop time response
dstep(numc,denc); pause % Press any key after the plot ...

% So the response looks pretty good and settles in about 14 samples
% which is 14*Ts secs.

disp(['Our disc drive will have a seek time > ',num2str(14*Ts),' seconds.'])

pause % Press any key to continue ...

% Let's now look at the robustness of our design.  The most common classical
% robustness criteria is the gain and phase margin.  The criteria is determined
% by forming a unity feedback system, calculating the Bode response and looking
% for the phase and gain crossovers.  MATLAB contains a function MARGIN that
% determines the phase and gain margin given the Bode response.

% Form unity feedback system by connecting our design system with the gain
% we chose.  Leave the loop open so we can compute the open loop Bode response.
[num2,den2] = series(num2,den2,k,1);

% Compute Bode response and margins
[mag,phase,w] = dbode(num2,den2,Ts);
[Gm,Pm,Wcg,Wcp] = margin(mag,phase,w); 

% Plot Bode plot with margins
margin(mag,phase,w); pause % Press any key after the plot ...

% Gain margin db, @ frequency, Phase margin, @ frequency
Margins = [20*log10(Gm),Wcg,Pm,Wcp]

% Our design is robust and can tolerate a 10 db gain increase and a 40 degree
% phase lag without going unstable.  By continuing this design process we may
% be able to find a compensator that will stabilize the open loop system and 
% allow us to reduce the seek time (more damping would allow us to reduce the
% settling time in the step response).

echo off

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区视频二区中文| 91国偷自产一区二区三区成为亚洲经典| 国产亚洲精品精华液| 精品国产污网站| 精品99999| 国产日韩欧美不卡| 中文av字幕一区| 中文字幕视频一区| 亚洲另类色综合网站| 一区二区高清在线| 亚洲成人免费在线观看| 亚瑟在线精品视频| 久久99国产精品尤物| 国产一区不卡在线| 成人性生交大片| 在线视频欧美区| 欧美一级二级三级蜜桃| 久久综合资源网| 一区二区三区不卡视频| 日韩综合小视频| 欧美日韩高清一区二区不卡| 欧美伦理视频网站| 国产精品女人毛片| 日本不卡一区二区三区高清视频| 日韩电影免费一区| 成人激情图片网| 国产aⅴ综合色| 91精品国产综合久久蜜臀| 亚洲成人在线免费| 亚洲人精品一区| 日韩在线一二三区| 国产高清在线观看免费不卡| 日本精品视频一区二区三区| 日韩三级视频在线看| 国产精品美女一区二区三区| 天堂久久一区二区三区| 国产激情一区二区三区| 欧美日韩一级视频| 欧美激情一区在线| 日韩av中文在线观看| 不卡一区二区三区四区| 欧美老肥妇做.爰bbww| 国产欧美日韩三级| 视频在线观看国产精品| 972aa.com艺术欧美| 91精品国产丝袜白色高跟鞋| 自拍偷在线精品自拍偷无码专区| 日韩一区欧美二区| 成人h精品动漫一区二区三区| 欧美日韩精品一区二区三区蜜桃| 国产丝袜在线精品| 日本午夜精品一区二区三区电影| 91视视频在线直接观看在线看网页在线看| 欧美性做爰猛烈叫床潮| 久久久精品国产免费观看同学| 亚洲国产精品久久久久秋霞影院| 国产露脸91国语对白| 欧美剧情片在线观看| 亚洲色图欧美激情| 成人国产精品视频| 久久久久久99精品| 久久福利资源站| 日韩欧美中文一区| 亚洲一区视频在线| 91成人在线精品| 中文字幕中文字幕在线一区| 成人av电影观看| 国产精品久久久久四虎| 国产传媒日韩欧美成人| 精品国产自在久精品国产| 青青草原综合久久大伊人精品优势| 一本大道久久a久久精二百| 中文久久乱码一区二区| 高清在线观看日韩| 日本一区二区三区高清不卡| 国产成人精品午夜视频免费| 久久久蜜臀国产一区二区| 久久精品国产亚洲高清剧情介绍 | 国产精品久久久久一区二区三区共| 色综合久久综合网97色综合| 国内精品伊人久久久久影院对白| 亚洲一区av在线| 国产精品久久毛片| 国产精品传媒入口麻豆| av亚洲精华国产精华精华| 国产激情一区二区三区桃花岛亚洲| 91视频观看视频| 欧美精品久久一区| 一区二区三区成人| 欧美久久久久久久久| 日日夜夜一区二区| 精品免费99久久| 国产美女精品人人做人人爽| 中文乱码免费一区二区| 色一情一伦一子一伦一区| 亚洲精品视频免费观看| 欧美日本高清视频在线观看| 麻豆国产欧美日韩综合精品二区| 久久综合九色综合欧美98| 国产成人精品免费| 亚洲黄色尤物视频| 欧美精品 日韩| 国产成人精品在线看| 亚洲人成在线播放网站岛国| 欧美乱妇15p| 国产成人免费9x9x人网站视频| 亚洲精品高清在线观看| 日韩欧美中文字幕精品| 成人av电影在线观看| 日韩电影在线免费| 中文久久乱码一区二区| 欧美中文字幕一区二区三区亚洲| 日本人妖一区二区| 国产精品私人影院| 欧美猛男超大videosgay| 国产精品中文欧美| 亚洲精品少妇30p| 欧美成人福利视频| 色综合久久久网| 国产九色sp调教91| 亚洲福利国产精品| 国产视频一区二区在线观看| 欧美日韩精品欧美日韩精品 | 欧美视频在线一区二区三区| 激情欧美一区二区| 亚洲国产成人高清精品| 国产欧美精品国产国产专区 | 久久综合久久综合久久综合| 欧美写真视频网站| 不卡在线观看av| 国产美女精品在线| 美女视频一区在线观看| 一区二区三区小说| 中文字幕精品一区| 国产日韩欧美综合一区| 日韩精品一区二区在线观看| 欧美日本视频在线| 欧美视频一区二区三区| 欧美国产丝袜视频| 成人蜜臀av电影| 久久精品国产精品亚洲红杏| 国内精品第一页| 国产欧美综合在线观看第十页| 不卡在线观看av| 亚洲成人动漫在线免费观看| 欧美日韩一二区| 国产激情视频一区二区三区欧美| 国产日韩欧美在线一区| 男男视频亚洲欧美| 久久久久国产精品厨房| 欧美电视剧免费观看| 日韩一区二区高清| 日本精品一级二级| 欧洲一区在线电影| 欧美亚洲一区二区在线| 不卡av在线免费观看| av在线一区二区三区| 成人免费高清在线| 国产盗摄女厕一区二区三区| 国产成人综合网站| 成人综合在线观看| 成人免费观看视频| 色哟哟一区二区| 色8久久精品久久久久久蜜| 欧美在线观看你懂的| 6080午夜不卡| 精品乱码亚洲一区二区不卡| 精品日韩av一区二区| 久久九九全国免费| 中文字幕中文乱码欧美一区二区| 国产精品情趣视频| 亚洲精品网站在线观看| 亚洲小说欧美激情另类| 日本不卡在线视频| 高清国产一区二区| 99久久99久久久精品齐齐| 欧美亚洲一区二区三区四区| 91麻豆精品国产91久久久久| 欧美成人一级视频| 国产精品女人毛片| 亚洲一区av在线| 国产一区在线看| 色婷婷综合久久久中文字幕| 精品久久久久香蕉网| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 亚洲男人都懂的| 日韩电影在线一区二区三区| 国产成人免费av在线| 欧美中文字幕一区二区三区亚洲| 日韩视频免费观看高清完整版在线观看 | 7777女厕盗摄久久久| 久久精品一区二区| 亚洲一二三区在线观看| 精品一区二区三区不卡| 一本色道久久综合亚洲91| 欧美乱妇15p| 亚洲视频在线观看三级| 精品一区二区国语对白| 91福利社在线观看| 国产精品丝袜一区|