关于SIMIULINK的菜鸟问题
我想在COMMAND WINDOWS用指令来控制SIMULINK中的电路图进行仿真,电路图保存名为nn,已经把仿真设置成TO WORKSPACE了,错误信息和电路图如下:>> sim('nn')
??? Error using ==> sim
--> Error evaluating expression '' for 'External Inputs' specified in the Configuration Parameters dialog for block diagram 'nn'. It must be possible to completely evaluate expressions in block-diagram parameter fields either in the model or source workspace.
Error in model and source workspaces: Error using ==> sim
Undefined function or variable 't'.
--> Error evaluating element '1' in list of external inputs specified in Configuration Parameters dialog. External inputs may be specified as either (a) a list of matrices and structures or (b) a single MATLAB expression or function.
哪位朋友能解释一下,直接用sim('文件名‘)不能对电路图进行仿真吗?
回复 #1 happydzps 的帖子
可以仿真吧,但电路图里面的示波器要换成输出接口模块,在模块库sinks里面找,还有命令要有返回值,试一下吧。
页:
[1]