results.htm

来自「matlab的FDC工具箱」· HTM 代码 · 共 24 行

HTM
24
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="fdchelp.css">
    <title>
      FDC help: Utility RESULTS
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#DDDDDD"><div>
    <h2>
      Processing simulation data with <i>RESULTS</i>
    </h2>
    <p>The Matlab macro <i>RESULTS</i> creates time-trajectories of individual inputs to and outputs from the <i><a href=
    "beaver.htm">Beaver</a></i> model. It can be used after running a simulation involving the aircraft model.</p>
    <p>During simulations, the time-trajectories of all inputvariables are sent to the matrix <i>In</i> and all time-trajectories of the outputvariables are sent to to the matrix <i>Out</i> in the Matlab workspace; see the <a href="inputs.htm">input</a> and <a href="outputs.htm">output</a> definitions for the <i>Beaver</i> model for the definitions of these matrices. Since analyzing the results directly from <i>In</i> and <i>Out</i> is possible, but not very convenient, <i>RESULTS</i> was created to  transform these matrices into time-trajectories of individual input and output signals with self-explaining variable names.</p>
    <p>So in order to produce a plot of the elevator deflection (for instance), instead of typing <code>plot(time,In(:,1))</code>, you can run <i>RESULTS</i> and then type <code>plot(time,deltae)</code>. Even easier: you can also run <i>RESULTS</i> first and then use the Matlab macro <i><a href="resplot.htm">RESPLOT</a></i> to automatically plot the most important time-trajectories.</p>
    <p><b>Note:</b> <i>RESULTS</i> only works correctly if the definitions of the matrices <i>In</i> and <i>Out</i> are not changed by editing the aircraft model. If the definitions are changed, then the file <small>RESULTS.M</small> in in the subdirectory <small>TOOLS</small> needs to be edited accordingly. Apart from some options regarding the units of measurements of the variables that represent angles and/or angular velocities, the macro <i>RESULTS</i> is very
    straightforward, so adapting this file is not very difficult.</p>
    <p><i>RESULTS</i> does not contain a &#39;save&#39; option, so remember to save the resulting time-trajectories yourself if you want to use them later. Don&#39;t forget to store the time-axis <i>time</i> too; otherwise you won&#39;t be able to plot the time-trajectories of the variables afterwards.</p>
  </div></body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?