Interception simulation using simulink model
3 次查看(过去 30 天)
显示 更早的评论
Summary: interception calculations of 2 objects where one trajectory is known and the other gets steered by simulink model.
Extended:I am trying to simulate a intersection in a X-Y plane. Think of a dog that is trying to catch a ball that is kicked away. The trajectory of the bal is known and the simulink model of the dog 'navigating' to the ball is working. The dog/model runs a repeating loop of 'where is the ball? where am I? how do I steer myself to the ball? where is the ball now? where am I? etc..
Question: How do I read/import the known ball trajectory coordinates into the live simulink model? My guess is with a 'from workspace' block but this imports only 1 value and then stops. I need it for every time step untill the dog caught the ball
It would mean the world to me to rechieve some help since I am stuck since a while now. If there are any questions, please let me know!
Many thanks in advance of the effort.
Steven
0 个评论
回答(1 个)
Keyur Mistry
2020-11-24
You might consider using Signal Builder block which can be used to generate signal through excel sheet data. You might need to add ball trajecotory coordinate values along with the time in excel sheet. Please refer to the "Importing Signal Groups from Existing Data Sets" section in the following link:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!