Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to work on objects in the workspace from Simulink
2 次查看(过去 30 天)
显示 更早的评论
I'm using the Automated Driving Toolbox, for example. It provides some objects data type (vehicle, actor, drivingScenario) that i use in matlab, but i can not use them (read or modify) from the simulink model, also if these objects are already defined in the base workspace that this simulink model can access.
Thank you in advance for you help Cheers
0 个评论
回答(1 个)
TAB
2018-9-5
If these objrcts are not supported by any Simulink toolbox, then you can not use them directly in Simulink.
But you can extract required numeric values/array/matrix from these objects, save them in base workspace and use them for further processing in Simulink.
For value extraction you can run your Matlab code/function in Model Callback or Block callback functions of simulink.
1 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!