matlab中的sim函数的返回值是什么
发布网友
发布时间:2022-04-26 14:14
我来回答
共4个回答
热心网友
时间:2022-06-01 21:04
展开1全部sim命令能是用户在MATLAB命令窗口或者是M文件中运行有simulink建立的模型。这是仿真的命令。我也是刚刚接触simulink仿真,正在学习当中。
simulink命令有三种调用格式:
[t,x,y]=sim('modelname'):利用对话框参数进行仿真,返回输出矩阵。
[t,x,y]=sim('model',timespan,option,ut):返回输出矩阵
[t,x,y1,y2,y3……yn]=t,x,y]=sim('model',timespan,option,ut):利用输入参数进行仿真,返回逐个输出
热心网友
时间:2022-06-01 21:04
SIM Simulate a Simulink model
SIM('model') will simulate your Simulink model using all simulation
parameter dialog settings including Workspace I/O options.
The SIM command also takes the following parameters. By default
time, state, and output are saved to the specified left hand side
arguments unless OPTIONS overrides this. If there are no left hand side
arguments, then the simulation parameters dialog Workspace I/O settings
are used to specify what data to log.
[T,X,Y] = SIM('model',TIMESPAN,OPTIONS,UT)
[T,X,Y1,...,Yn] = SIM('model',TIMESPAN,OPTIONS,UT)
T : Returned time vector.
X : Returned state in matrix or structure format.
The state matrix contains continuous states followed by
discrete states.
Y : Returned output in matrix or structure format.
For block diagram models this contains all root-level
outport blocks.
Y1,...,Yn : Can only be specified for block diagram models, where n
must be the number of root-level outport blocks. Each
outport will be returned in the Y1,...,Yn variables.
返回时间,状态 和输出结果
热心网友
时间:2022-06-01 21:04
sim函数有好几个呢,楼主问的是哪个呢。在神经网络里面,sim的返回值第一个最常用,就是仿真结果了。
热心网友
时间:2022-06-01 21:05
返回训练后的数据、