If you want to run a simulink model from MATLAB, use the command sim('YourSimulinkModel.slx')
,
And in your simulink model, use the block To Workspace (address: simulink/Sinks/To Workspace
). to export the results of simulink model to the MATLAB Workspace after execution.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…