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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? diskdemo.m

?? 本書(shū)是電子通信類的本科、研究生輔助教材
?? M
字號(hào):
%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

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品伦理一区二区| 精品剧情v国产在线观看在线| 国产精品久久久久永久免费观看 | 美腿丝袜亚洲三区| 欧美一区二区三区视频在线观看| 免费成人在线网站| 国产亚洲综合在线| 97久久超碰精品国产| 亚洲成人激情综合网| 日韩三级免费观看| 成人午夜精品在线| 亚洲一区二区三区四区在线观看 | 国产亚洲短视频| av成人动漫在线观看| 亚洲午夜视频在线观看| 欧美一区二区三区视频在线观看| 国产乱码精品一区二区三区忘忧草| 欧美国产精品一区二区三区| 色综合一区二区| 日本欧美肥老太交大片| 日本一区二区成人| 欧美日韩一区二区三区在线看| 久久精品国产精品亚洲综合| ●精品国产综合乱码久久久久| 69p69国产精品| 暴力调教一区二区三区| 日韩av二区在线播放| 国产精品乱人伦中文| 欧美高清一级片在线| 成人自拍视频在线观看| 日日夜夜精品视频天天综合网| 国产网站一区二区三区| 欧美精品视频www在线观看 | 亚洲精品第一国产综合野| 欧美精品粉嫩高潮一区二区| 成人激情图片网| 日本中文字幕不卡| 亚洲另类中文字| 久久精品网站免费观看| 制服丝袜中文字幕亚洲| 色综合视频在线观看| 国产精品综合网| 日韩电影在线看| 亚洲一区在线观看视频| 亚洲欧美自拍偷拍色图| 欧美一区二区三区系列电影| 一本色道久久综合亚洲aⅴ蜜桃 | 欧美一区二区在线观看| aaa欧美色吧激情视频| 韩国中文字幕2020精品| 亚洲成av人片在线观看| 亚洲啪啪综合av一区二区三区| 久久久久99精品国产片| 51精品视频一区二区三区| 在线一区二区视频| 国产成人av一区二区| 久久精品72免费观看| 日韩国产欧美在线播放| 夜夜嗨av一区二区三区四季av| 国产欧美一区二区精品性| 亚洲精品在线免费观看视频| 91麻豆精品久久久久蜜臀| 欧洲国产伦久久久久久久| 色综合天天综合网天天狠天天| 国产成a人无v码亚洲福利| 国产麻豆日韩欧美久久| 国产一区二区视频在线| 激情综合一区二区三区| 紧缚奴在线一区二区三区| 男女性色大片免费观看一区二区| 香蕉成人伊视频在线观看| 亚洲成av人片在www色猫咪| 亚洲午夜精品久久久久久久久| 一二三区精品视频| 欧美性色综合网| k8久久久一区二区三区| 国产91色综合久久免费分享| 国产精品自拍三区| 国产乱淫av一区二区三区| 精品一区二区在线观看| 韩日精品视频一区| 国产美女娇喘av呻吟久久| 国产精品一区二区你懂的| 国产成人亚洲精品青草天美| 成人爱爱电影网址| 99精品视频免费在线观看| 色哟哟日韩精品| 欧美天堂亚洲电影院在线播放| 欧美午夜电影在线播放| 欧美日韩国产另类一区| 欧美一区二区在线视频| 精品播放一区二区| 中文在线资源观看网站视频免费不卡| 中文字幕精品一区| 亚洲综合丝袜美腿| 五月天久久比比资源色| 久久精品国产精品亚洲红杏| 国产福利精品一区二区| 一本大道久久a久久综合婷婷| 在线观看日产精品| 欧美成人a视频| 中文字幕不卡在线播放| 一个色在线综合| 久久疯狂做爰流白浆xx| bt欧美亚洲午夜电影天堂| 欧美伊人久久大香线蕉综合69 | 成人性视频免费网站| 色偷偷88欧美精品久久久| 欧美老肥妇做.爰bbww| 久久蜜桃香蕉精品一区二区三区| 中文字幕一区二区不卡| 天天操天天色综合| 国产盗摄一区二区三区| 色琪琪一区二区三区亚洲区| 日韩精品资源二区在线| 亚洲综合色网站| 久久精品国产精品亚洲精品| 99久久99久久精品国产片果冻| 欧美人与z0zoxxxx视频| 欧美激情一区在线观看| 婷婷久久综合九色综合绿巨人| 国产盗摄女厕一区二区三区| 精品视频一区二区三区免费| 久久久三级国产网站| 午夜精品一区二区三区免费视频| 国精产品一区一区三区mba视频| 91精品办公室少妇高潮对白| 精品久久久久久久久久久久包黑料| 17c精品麻豆一区二区免费| 精品一区二区三区蜜桃| 欧美在线观看一区| 国产精品久久影院| 极品销魂美女一区二区三区| 欧美日韩一区国产| 亚洲欧美在线aaa| 激情综合一区二区三区| 欧美日韩一级片在线观看| 成人免费一区二区三区在线观看| 精品一区二区综合| 91精品国产91久久久久久最新毛片| 综合亚洲深深色噜噜狠狠网站| 国产中文字幕精品| 日韩一卡二卡三卡四卡| 亚洲电影一级片| 色综合久久久久久久| 国产精品免费av| 国产999精品久久久久久| 日韩色在线观看| 日韩成人av影视| 欧美日本一区二区| 一个色综合网站| 在线免费一区三区| 亚洲女人****多毛耸耸8| 北条麻妃国产九九精品视频| 国产天堂亚洲国产碰碰| 国产精品伊人色| 久久精品夜色噜噜亚洲a∨| 激情成人综合网| 精品国产乱码久久久久久1区2区| 日韩av不卡在线观看| 91麻豆精品国产综合久久久久久| 天天射综合影视| 欧美片在线播放| 日本美女视频一区二区| 日韩欧美高清在线| 精东粉嫩av免费一区二区三区 | 国产日韩精品一区二区三区| 精品影院一区二区久久久| 精品少妇一区二区三区在线播放 | 国产成人aaa| 国产蜜臀av在线一区二区三区| 风间由美一区二区av101| 亚洲国产精品成人综合色在线婷婷| 国产成人精品影视| 中文字幕一区二区三区色视频| 一本大道久久a久久精二百| 亚洲综合视频网| 欧美一三区三区四区免费在线看 | 日韩综合一区二区| 欧美国产欧美亚州国产日韩mv天天看完整| 国产一区999| 国产精品沙发午睡系列990531| 99久久久久久| 亚洲成人你懂的| 日韩限制级电影在线观看| 国产九色精品成人porny| 国产精品久久久久久久裸模| 在线影院国内精品| 日韩av一区二区三区| 久久在线观看免费| 成人97人人超碰人人99| 亚洲影院理伦片| 91精品啪在线观看国产60岁| 国产综合成人久久大片91| 中文字幕亚洲视频| 欧美一级欧美一级在线播放| 国产麻豆精品在线| 一区二区三区成人在线视频| 日韩一区二区三区在线视频| av在线这里只有精品|