matlab中的sim函数的返回值是什么
展开全部
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):利用输入参数进行仿真,返回逐个输出
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):利用输入参数进行仿真,返回逐个输出
展开全部
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.
返回时间,状态 和输出结果
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.
返回时间,状态 和输出结果
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
sim函数有好几个呢,楼主问的是哪个呢。在神经网络里面,sim的返回值第一个最常用,就是仿真结果了。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
返回训练后的数据、
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询