声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2284|回复: 6

[工具箱] 命令解释

[复制链接]
发表于 2006-9-13 10:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
在学习别人编写的程序,发现有一个命令,不知道什么意思。查看帮助里面,也没有找到,不知道是哪个工具箱里的函数还是怎么回事。请知道的指教!谢谢!
OPTIONS = simset('solver','ode5','FixedStep',dtint);
程序中命令为上面所写。
回复
分享到:

使用道具 举报

发表于 2006-9-13 10:48 | 显示全部楼层
>> help simset

SIMSET Create/alter OPTIONS structure for input to SIM.
    OPTIONS = SIMSET('NAME1',VALUE1,'NAME2',VALUE2,...) creates a Simulink
    sim options structure, OPTIONS, in which the named properties have
    the specified values.  It is sufficient to type only the leading
    characters that uniquely identify the property.  Case is ignored for
    property names.

    OPTIONS = SIMSET(OLDOPTS,'NAME1',VALUE1,...) alters an existing options
    structure OLDOPTS.

    OPTIONS = SIMSET(OLDOPTS,NEWOPTS) combines an existing options structure
    OLDOPTS with a new options structure NEWOPTS.  Any new properties
    overwrite corresponding old properties.

    SIMSET with no input arguments displays all property names and their
    possible values.

    SIMSET PROPERTY DEFAULTS

    The default for any unspecified property is taken from the simulation
    parameters dialog box if present.  If the value specified in the simulation
    parameter dialog box is "auto", then the default value specified below is
    used.

    SIMSET PROPERTIES

    Solver - Method to advance time [ VariableStepDiscrete |
                                      ode45 | ode23 | ode113 | ode15s |
                                      ode23s |
                                      FixedStepDiscrete |
                                      ode5 | ode4 | ode3 | ode2 | ode1 ]
    This property specifies which solver is used to advance time.

    RelTol - Relative error tolerance [ positive scalar {1e-3} ]
    This scalar applies to all components of the state vector.  The
    estimated error in each integration step satisfies
    e(i) <= max(RelTol*abs(x(i)),AbsTol(i)).  RelTol applies only to the
    variable step solvers, and defaults to 1e-3 (0.1% accuracy).

    AbsTol - Absolute error tolerance [ positive scalar {1e-6} ]
    This scalar applies to all components of the state vector.  AbsTol
    applies only to the variable step solvers, and defaults to 1e-6.

    Refine - Output refinement factor [ positive integer {1} ]
    This property increases the number of output points by the specified
    factor producing smoother output.  During refinement the solver
    also checks for zero crossings. Refine applies only to the variable
    step solvers and defaults to 1.  Refine is ignored if output times are
    specified.

    MaxStep - Upper bound on the step size [ positive scalar {auto} ]
    MaxStep applies only to the variable step solvers, and defaults to
    one-fiftieth of the simulation interval.

    MinStep - Lower bound on the step size [ positive scalar {auto} ]
    or [ positive scalar, nonnegative integer ]
    Minstep applies only to the variable step solvers, and defaults to
    a value based on machine precision.

    InitialStep - Suggested initial step size [ positive scalar {auto} ]
    InitialStep applies only to the variable step solvers.  The solvers will
    try a step size of InitialStep first.  By default the solvers determine
    an initial step size automatically.

    MaxOrder - Maximum order of ODE15S [ 1 | 2 | 3 | 4 | {5} ]
    MaxOrder applies only to ODE15S, and defaults to 5.

    FixedStep - Fixed step size [ positive scalar ]
    FixedStep applies only to the fixed-step solvers.  If there are discrete
    components, the default is the fundamental sample time; otherwise, the
    default is one-fiftieth of the simulation interval.

    OutputPoints - Determine output points [ {specified} | all ]
    OutputPoints defaults to 'specified', i.e. the solver produces outputs
    T, X, and Y only at the times specified in TIMESPAN.  When OutputPoints
    is set to 'all', the T, X, and Y will also include the time steps taken
    by the solver.

    OutputVariables - Set output variables [ {txy} | tx | ty | xy | t | x | y ]
    If 't' or 'x' or 'y' is missing from the OutputVariables string then the
    solver produces an empty matrix in the corresponding output T, X,
    or Y. This property is ignored if there are no left hand side arguments.
   

    SaveFormat - Set save format [{'Array'} | 'Structure' | 'StructureWithTime']
    This property specifies the format of saving states and outputs.
    The state matrix contains continuous states followed by discrete states.
    If save format is 'Structure' or 'StructureWithTime', states and
    outputs are saved in structure arrays with time and signals fields.
    The signals field contains the following fields: 'values', 'label', and
    'blockName'.  If the save format is 'StructureWithTime', simulation time is
    saved in the corresponding structures.

    MaxDataPoints - Limit number of data points [non-negative integer {0}]
    'MaxDataPoints' was previously called 'MaxRows'. This property limits the
    number of data points returned in T, X, and Y to the last MaxDataPoints
    data logging time points.  If specified as 0, then no limit is imposed.  
    MaxDataPoints defaults to 0.

    Decimation - Decimation for output variables [ positive integer {1} ]
    Decimation factor applied to the return variables, T, X, and Y.  A
    decimation factor of 1 returns every data logging time point, a
    decimation factor of 2 returns every other data logging time point,
    etc.  Decimation defaults to 1.

    InitialState - Initial continuous and discrete states [ vector {[]} ]
    The initial state vector consists of the continuous states (if any)
    followed by the discrete states (if any).  InitialState supersedes the
    initial states specified in the model.  InitialState defaults to the
    empty matrix [] indicating that the initial state values specified in
    the model are to be used.

    FinalStateName - Name of final states variable [ string {''} ]
    The property specifies the name of a variable into which to save
    the states of the model at the end of the simulation.  FinalStateName
    defaults to the empty string ''.

    Trace - comma separated list of [ 'minstep', 'siminfo', 'compile',
                                      'compilestats' {''} ]
    This property enables simulation tracing facilities.
    o The 'minstep' trace flag specifies that simulation will stop when the
      solution changes so abruptly that the variable step solvers cannot take
      a step and satisfy the error tolerances.  By default Simulink issues a
      warning and continues the simulation.
    o The 'siminfo' trace flag provides a short summary of the simulation
      parameters in effect at the start of simulation.
    o The 'compile' trace flag displays the compilation phases of a block
      diagram model.
    o The 'compilestats' trace flag displays the time and memory usage for
      the compilation phases of a block diagram model.

    SrcWorkspace - Where to evaluate expressions [ {base} | current | parent ]
    This property specifies the workspace in which to evaluate MATLAB
    expressions defined in the model.  The default is the base
    workspace.

    DstWorkspace - Where to assign variables [ base | {current} | parent ]
    This property specifies the workspace in which to assign any variables
    defined in the model.  The default is the current workspace.

    ZeroCross - Enable/disable location of zero crossings [ {on} | off ]
    ZeroCross applies only to the variable step solvers, and defaults to 'on'.

    See also SIM, SIMGET.

评分

1

查看全部评分

发表于 2006-9-13 10:50 | 显示全部楼层
原帖由 jimin 于 2006-9-13 10:48 发表
>> help simset

SIMSET Create/alter OPTIONS structure for input to SIM.
    OPTIONS = SIMSET('NAME1',VALUE1,'NAME2',VALUE2,...) creates a Simulink
    sim options structure, OPTIONS, in  ...


估计楼主的matlab版本不够高,安装2006a吧
 楼主| 发表于 2006-9-13 15:55 | 显示全部楼层
是版本的问题还是某个工具箱没有装的原因呢?
能不能添加到我这个版本中呢?
发表于 2006-9-13 15:59 | 显示全部楼层
我用的是6.5,也有这个函数的
 楼主| 发表于 2006-9-13 19:49 | 显示全部楼层
我的是7.0的,怎么都没有呢?!
发表于 2006-9-13 21:27 | 显示全部楼层
原帖由 xinquan 于 2006-9-13 19:49 发表
我的是7.0的,怎么都没有呢?!


7.0又这个函数,是不是你没有装全?
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-20 01:33 , Processed in 0.090462 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表