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

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

?? results.m

?? MATLAB在飛行動力學和控制中應用的工具
?? M
字號:
%----------------------------------------------------------------
% The FDC toolbox - Matlab macro RESULTS
% ======================================
% RESULTS.M is a Matlab macro, wich creates time-trajectories of
% individual inputs to and outputs from the Simulink system BEA-
% VER. RESULTS should be used after running a simulation in which
% the Simulink system BEAVER is involved. During simulations, the
% time-trajectories of all inputvariables are send to the matrix
% In and all time-trajectories of the outputvariables are send to
% to the matrix Out in the Matlab workspace. RESULTS transforms
% these results into time-trajectories of individual inputs and
% outputs, which have self-explaining variable names. So in stead
% of plotting In(:,1) against time, you can plot deltae against
% time after running RESULTS.
%
% See the helpfiles INPUTS.HLP and OUTPUTS.HLP in the subdirecto-
% ry HELP for the exact definitions of the input and output va-
% riables, stored in the matrices In and Out and the variables
% which will be extracted from these matrices by RESULTS.
%
% It is not possible to apply RESULTS to simulation results from
% other systems which do not use the same (default) definitions
% of the matrices In and Out as the system BEAVER. Therefore, if
% you wish to make changes to the lists of inputs and outputs,
% e.g. in order to implement a dynamic model of another aircraft,
% you MUST edit the file RESULTS.M too! This file can be found
% in the subdirectory TOOLS. Apart from some options regarding
% dimensions of variables representing angles and/or angular
% velocities, the macro RESULTS.M is very straightforward, so
% adapting this file for other applications is not difficult.
%
% Note: if the simulation covers many time-points, the matrices
% In and Out will become such large that you may encounter 'Out
% of Memory' errors when running RESULTS.M. In that case, you
% may wish to reduce the number of inputs and outputs, stored
% in the Matlab workspace, thus reducing the size of the matri-
% ces In and/or Out. Of course, you need to delete the correspon-
% ding lines from the file RESULTS.M too if you still want to
% extract time-trajectories of individual inputs and/or outputs.
% 'Out of Memory' errors may occur when simulating aircraft res-
% ponses to atmospheric turbulence, or responses of the aircraft
% to control commands, coming from a digital controller with a
% small sample-time.
%
% Unfortunately, Simulink does not always send the simulation
% results correctly to the workspace. Therefore RESULTS.M always
% checks if the matrices In and Out are present in the workspace.
% If not, it first tries to 'rescue' these 'disappeared' varia-
% bles, assuming that your aircraft model is called BEAVER. If
% In and Out cannot be retrieved, you have to do the simulation
% again. Be careful that you don't mistake old simulation results
% for new ones! This Simulink-problem seems to have something to
% do with the use of To Workspace in the deeper levels of the
% system. Hopefully, this small bug will be fixed soon in newer
% versions of Simulink by the MathWorks Inc.
%
% RESULTS.M does not contain save-options, so remember to store
% the variables yourself. If you save variables, don't forget to
% store the time-axis 'time' too, otherwise you'll not be able
% to plot the time-trajectories of the variables.
%
% See INPUTS.HLP and OUTPUTS.HLP for more info.
%----------------------------------------------------------------


% Check if the matrices In and Out, and the time axis are present in the
% Matlab workspace. If not, make one call to the system BEAVER in order
% to try to 'rescue' the 'lost' simulation results and check again if the
% matrices and time-axis are present (this is done by the routine
% RECOVER.M, which also may be used as a separate routine to recover
% 'lost' results).
% -----------------------------------------------------------------------
if exist('time') == 0 | exist('Out') == 0 | exist('In') == 0
   clc
   disp('Simulation results not found. May be caused by Simulink-bug,')
   disp('so trying to recover the ''lost'' simulation results... ')
   disp(' ');
   recover('beaver');
end
if exist('time') == 0
   error('Time-axis vector ''time'' not present in Workspace!');
elseif exist('Out') == 0
   error('Matrix with output trajectories ''Out'' not present in Workspace!');
elseif exist('In') == 0
   error('Matrix with input trajectories ''In'' not present in Workspace!');
end

% Check if the number of inputs and outputs stored in these matrices cor-
% respond with the default definitions of In and Out used in the system
% BEAVER. Of course, the latter check does not guarantee that the defini-
% tions of the matrices In and Out as found in the Matlab workspace, are in
% accordance with the default definitions used in the system BEAVER, but if
% the number of variables does not match we know for sure that the results
% aren't correct!
%
% The user him/herself must take care of changing RESULTS.M if the defini-
% tions of the matrices In and Out need to be changed!
% ----------------------------------------------------------------------------

[m1,n1] = size(In);
[m2,n2] = size(Out);

if n1 ~= 12
   error('Number of inputs is not equal to 12. RESULTS won''t work!');
elseif n2 ~= 89
   error('Number of outputs is not equal to 89. RESULTS won''t work!');
end

clear m1 n1 m2 n2

% Header to make sure user knows what goes on...
% -----------------------------------------------
clc
disp('FDC 1.2 - RESULTS');
disp('=================');
disp(' ');
disp('Transfer simulation results from matrices In and Out into');
disp('time-trajectories of individual inputs and outputs, using');
disp('self-explaining variable names.');
disp(' ');

% Specify dimension of angles and angular velocities. While-loops ensure
% that that user gives valid answers to the questions.
% ----------------------------------------------------------------------
ok = 0;
while ok ~= 1
   disp(' ');
   angledims = input('Angles in [rad] or [deg] (r/d)? ','s');
   if angledims == 'r'
      disp(' ');
      disp('    Angles will be measured in [rad]');
      c1 = 1;                      % multiplication factor for angles in [rad]
      ok = 1;
   elseif angledims == 'd'
      disp(' ');
      disp('    Angles will be measured in [deg]');
      c1 = 180/pi;                 % multiplication factor for angles in [deg]
      ok = 1;
   else
      disp(' ');
      disp('Enter r for [rad] or d for [deg]!');
   end
end

ok = 0;
while ok ~= 1
   disp(' ');
   ratedims = input('Angular velocities in [rad/s] or [deg/s] (r/d)? ','s');
   if ratedims == 'r'
      disp(' ');
      disp('    Angular velocities will be measured in [rad/s]');
      c2 = 1;        % multiplication factor for angular velocities in [rad/s]
      ok = 1;
   elseif ratedims == 'd'
      disp(' ');
      disp('    Angular velocities will be measured in [deg/s]');
      c2 = 180/pi;   % multiplication factor for angular velocities in [deg/s]
      ok = 1;
   else
      disp(' ');
      disp('Enter r for [rad/s] or d for [deg/s]!');
   end
end

disp(' ');
disp(' ');
disp('Wait a moment please...');

% Now create individual trajectories of control inputs and atmospheric
% disturbances from the results, stored in the matrix In. See INPUTS.HLP
% for the exact definitions.
% ----------------------------------------------------------------------
deltae = In(:,1) * c1;
deltaa = In(:,2) * c1;
deltar = In(:,3) * c1;
deltaf = In(:,4) * c1;
n      = In(:,5);
pz     = In(:,6);
uw     = In(:,7);
vw     = In(:,8);
ww     = In(:,9);
uwdot  = In(:,10);
vwdot  = In(:,11);
wwdot  = In(:,12);

% Now create individual trajectories of outputs from the system BEAVER,
% from the results stored in the matrix Out. See OUTPUTS.HLP for the
% exact definitions.
% ---------------------------------------------------------------------

% State variables:

V        = Out(:,1);
alpha    = Out(:,2)* c1;
beta     = Out(:,3)* c1;
p        = Out(:,4)* c2;
q        = Out(:,5)* c2;
r        = Out(:,6)* c2;
psi      = Out(:,7)* c2;
theta    = Out(:,8)* c2;
phi      = Out(:,9)* c2;
xe       = Out(:,10);
ye       = Out(:,11);
H        = Out(:,12);

% Time-derivatives of states (see VABDOT.HLP, PQRDOT.HLP, EULERDOT.HLP, and
% XYHDOT.HLP):

Vdot     = Out(:,13);
alphadot = Out(:,14)* c1;
betadot  = Out(:,15)* c1;
pdot     = Out(:,16)* c2;
qdot     = Out(:,17)* c2;
rdot     = Out(:,18)* c2;
psidot   = Out(:,19)* c2;
thetadot = Out(:,20)* c2;
phidot   = Out(:,21)* c2;
xedot    = Out(:,22);
yedot    = Out(:,23);
Hdot     = Out(:,24);

% Body-axes velocities (see UVW.HLP):

u        = Out(:,25);
v        = Out(:,26);
w        = Out(:,27);

% Time-derivatives of body-axes velocities (see UVWDOT.HLP):

udot     = Out(:,28);
vdot     = Out(:,29);
wdot     = Out(:,30);

% Dimensionless rotational velocities in aircraft's body-axes (see
% DIMLESS.HLP):

pb_2V    = Out(:,31);
qc_V     = Out(:,32);
rb_2V    = Out(:,33);

% Some additional flightpath variables (see FLPATH.HLP):

gamma    = Out(:,34)* c1;
fpa      = Out(:,35);
chi      = Out(:,36)* c1;
Phi      = Out(:,37)* c1;

% Engine variables (see POWER.HLP):

dpt      = Out(:,38);
P        = Out(:,39);

% Specific forces and kinematic accelerations (see ACCEL.HLP):

Ax       = Out(:,40);
Ay       = Out(:,41);
Az       = Out(:,42);
axk      = Out(:,43);
ayk      = Out(:,44);
azk      = Out(:,45);

% Dimensionless aerodynamic force and moment coefficients (see AEROMOD.HLP):

CXa      = Out(:,46);
CYa      = Out(:,47);
CZa      = Out(:,48);
Cla      = Out(:,49);
Cma      = Out(:,50);
Cna      = Out(:,51);

% Dimensionless propulsive force and moment coefficients (see ENGMOD.HLP):

CXp      = Out(:,52);
CYp      = Out(:,53);
CZp      = Out(:,54);
Clp      = Out(:,55);
Cmp      = Out(:,56);
Cnp      = Out(:,57);

% Aerodynamic forces and moments (see AEROMOD.HLP and FMDIMS.HLP):

Xa       = Out(:,58);
Ya       = Out(:,59);
Za       = Out(:,60);
La       = Out(:,61);
Ma       = Out(:,62);
Na       = Out(:,63);

% Propulsive forces and moments (see ENGMOD.HLP and FMDIMS.HLP):

Xp       = Out(:,64);
Yp       = Out(:,65);
Zp       = Out(:,66);
Lp       = Out(:,67);
Mp       = Out(:,68);
Np       = Out(:,69);

% Forces due to gravity (see GRAVITY.HLP):

Xgr      = Out(:,70);
Ygr      = Out(:,71);
Zgr      = Out(:,72);

% Corrections to body-axes forces due to nonsteady atmosphere (see
% FWIND.HLP):

Xw       = Out(:,73);
Yw       = Out(:,74);
Zw       = Out(:,75);

% Atmosphere variables (see ATMOSPH.HLP):

rho      = Out(:,76);
ps       = Out(:,77);
T        = Out(:,78);
mu       = Out(:,79);
g        = Out(:,80);

% Airdata variables (see AIRDATA1.HLP, AIRDATA2.HLP, and AIRDATA3.HLP):

a        = Out(:,81);
M        = Out(:,82);
qdyn     = Out(:,83);

qc       = Out(:,84);
Ve       = Out(:,85);
Vc       = Out(:,86);

Tt       = Out(:,87);
Re       = Out(:,88);
Rc       = Out(:,89);

% Ready...
% --------
disp(' ');
disp('Ready. Press key to continue...');
pause
clc

% Give user the option to delete matrices In and Out from the workspace
% ---------------------------------------------------------------------
answ = input('Delete matrices In and Out from workspace (y/n)? ','s');
if answ == 'y'
   clear In Out
end

% Display help message for user. Goodbye, see U next time...
% ----------------------------------------------------------
disp(' ');
disp('The workspace now contains time trajectories of the twelve inputs');
disp('(six vectors with control inputs and six with atmospheric distur-');
disp('bances) and the 89 outputs from the system BEAVER. The variable');
disp('names of these vectors are self-explaining, but if you have doubts');
disp('about the definitions, examine the help texts INPUTS.HLP and/or');
disp('OUTPUTS.HLP from the subdirectory HELP.');
disp(' ');
disp('The time-axis against which the results can be plotted is con-');
disp('tained in the variable time.');
disp(' ');
disp('Remember that currently:');
disp(' ');
if angledims == 'd'
   disp('  angles are measured in [deg]');
else
   disp('  angles are measured in [rad]');
end
disp(' ');
if ratedims == 'd'
   disp('  angular velocities are measured in [deg]');
else
   disp('  angular velocities are measured in [rad]');
end
disp(' ');
disp('Ready.');
disp(' ');

clear angledims ratedims ok answ

%------------------------------------------------------------------------------
% The FDC toolbox. Copyright Marc Rauw, 1994-2000.
% Last revision of this program: October 7, 1997.
%
% Revision history since October 7, 1997:
% =======================================
% October 7, 1997
%   - Editorial changes

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美洲天堂一区二卡三卡四卡视频| 国产精品国产三级国产aⅴ入口| 97久久精品人人爽人人爽蜜臀 | 免费成人小视频| 亚洲免费av高清| 亚洲欧美日韩小说| 亚洲免费高清视频在线| 亚洲美女视频在线观看| 亚洲欧洲无码一区二区三区| 国产精品电影一区二区| 18欧美亚洲精品| 国产精品福利一区二区| 伊人色综合久久天天| 国产精品久久久久婷婷二区次| 26uuu国产在线精品一区二区| 精品粉嫩超白一线天av| 日韩精品在线看片z| 久久看人人爽人人| 国产午夜精品福利| 亚洲天堂精品在线观看| 亚洲一区二区三区在线播放| 亚洲一区二区三区在线播放| 日韩精品电影在线观看| 久久成人免费日本黄色| 丰满少妇久久久久久久| 97se亚洲国产综合自在线不卡 | 成人性色生活片| 9色porny自拍视频一区二区| 99久久久久久99| 欧美日韩高清一区二区三区| 日韩午夜小视频| 中文字幕精品一区二区三区精品| 欧美国产精品中文字幕| 一区二区高清视频在线观看| 日本不卡1234视频| 成人美女视频在线看| 欧美在线free| 久久久.com| 亚洲国产综合91精品麻豆| 精品制服美女丁香| 色婷婷综合久久| 日韩欧美电影一二三| 一区视频在线播放| 理论电影国产精品| 91免费在线看| 日韩你懂的在线播放| 亚洲天堂免费看| 国内成人精品2018免费看| 91成人免费电影| 久久久www成人免费毛片麻豆| 一区二区三区欧美在线观看| 国产中文一区二区三区| 在线视频国产一区| 国产精品亲子伦对白| 美女视频黄频大全不卡视频在线播放| 国产sm精品调教视频网站| 欧美精品视频www在线观看 | 成人精品一区二区三区中文字幕| 欧美亚洲禁片免费| 中文字幕在线不卡| 国产精华液一区二区三区| 欧美人狂配大交3d怪物一区| 中文字幕一区在线观看视频| 狠狠色丁香婷综合久久| 在线电影一区二区三区| 一个色综合网站| 91亚洲国产成人精品一区二区三| 久久这里只有精品首页| 日韩高清在线观看| 日韩美女在线视频| 一区二区三区资源| www.日韩大片| 中文字幕第一页久久| 极品少妇一区二区| 日韩欧美成人一区二区| 日韩福利电影在线观看| 欧美色中文字幕| 一区二区三区在线视频免费| 99久久精品国产毛片| 国产精品萝li| www.日韩大片| 亚洲欧美另类小说| 91色视频在线| 亚洲人快播电影网| 日本黄色一区二区| 亚洲精品国产高清久久伦理二区| 一本色道**综合亚洲精品蜜桃冫| 国产精品久久久久久亚洲毛片| 高清在线观看日韩| 亚洲欧美怡红院| 在线观看日韩高清av| 有码一区二区三区| 欧美日韩综合在线| 日日摸夜夜添夜夜添精品视频 | 亚洲成av人在线观看| 欧美日韩免费高清一区色橹橹| 天天综合色天天综合| 欧美一区二区观看视频| 加勒比av一区二区| 国产精品免费视频观看| 欧洲av在线精品| 视频一区二区欧美| 欧美v日韩v国产v| 国产成人午夜电影网| 国产精品久久免费看| 色欧美片视频在线观看在线视频| 午夜久久久久久久久久一区二区| 欧美一激情一区二区三区| 韩国女主播成人在线观看| 日本一区二区三区视频视频| 95精品视频在线| 日韩精品免费专区| 日本一区二区三区在线观看| 91日韩精品一区| 蜜桃91丨九色丨蝌蚪91桃色| 欧美精品一区二区三区四区| 91影视在线播放| 奇米精品一区二区三区在线观看一| 亚洲精品在线网站| 91色|porny| 国产乱人伦偷精品视频不卡| 亚洲黄色小视频| 久久天堂av综合合色蜜桃网| 色偷偷88欧美精品久久久| 美国毛片一区二区| 亚洲最新在线观看| 久久久久久久综合| 久久蜜臀精品av| 97久久精品人人做人人爽50路| 免播放器亚洲一区| 一区二区三区在线不卡| 国产视频一区二区在线| 777精品伊人久久久久大香线蕉| 国产91精品精华液一区二区三区| 亚洲成人免费观看| 亚洲免费在线视频| 国产精品区一区二区三| 欧美成人女星排行榜| 欧美日本在线看| 欧洲一区二区三区在线| 成人精品一区二区三区四区 | 国精产品一区一区三区mba桃花 | 中文字幕在线不卡视频| 久久亚洲私人国产精品va媚药| 欧美日韩在线一区二区| 99re66热这里只有精品3直播| 国产一区二三区| 久久av中文字幕片| 婷婷久久综合九色综合绿巨人 | 成人午夜视频在线观看| 蜜桃视频在线一区| 日本视频在线一区| 人人爽香蕉精品| 午夜精品福利一区二区蜜股av | 亚洲综合在线视频| 亚洲丝袜美腿综合| 国产精品福利在线播放| 国产精品入口麻豆九色| 国产日韩欧美不卡| 国产欧美日韩精品一区| 欧美精品一区二区三区久久久| 日韩小视频在线观看专区| 欧美电视剧免费全集观看| 日韩欧美亚洲国产精品字幕久久久| 欧美高清视频一二三区 | 欧美肥妇bbw| 91精品国产91综合久久蜜臀| 91精品婷婷国产综合久久性色| 精品视频123区在线观看| 亚洲精品在线一区二区| 精品少妇一区二区三区在线视频| 日韩欧美国产三级| 国产色91在线| 亚洲欧美国产高清| 午夜精品久久久久久久 | 秋霞影院一区二区| 九一九一国产精品| 成人网男人的天堂| 欧美无砖砖区免费| 欧美一区国产二区| 久久久久久久久久久99999| 亚洲国产成人在线| 又紧又大又爽精品一区二区| 午夜久久久久久久久久一区二区| 日本不卡一区二区三区高清视频| 国产综合色在线| eeuss国产一区二区三区| 欧美影院一区二区三区| 精品久久99ma| 国产精品国产三级国产普通话三级 | 国产剧情av麻豆香蕉精品| aaa亚洲精品| 日韩欧美国产电影| 亚洲日本乱码在线观看| 免费av网站大全久久| 成人av在线看| 欧美一二三区在线观看| 国产精品三级视频| 奇米色一区二区| 一本大道av一区二区在线播放|