How to integrate a MATLAB algorithm into Simulink?

Hi, i'm Antonino Trotta, a mechatronic engineering student. I'm working on a trajectory planner for autonomous vehicle. I've just defined my planning algorithm in a M-File, now i have to test it in simulink using also CarSim. But i've a big problem due to the fact that i'm not able to integrate my algorithm in Simulink.
The algorithm plans a new trajectory each 100 ms, computing a set of possible trajectory. In the algorithm i use queues and data structures. How i solve this challenge topic?

Respuestas (1)

ag
ag el 5 de Nov. de 2024

0 votos

Hi Antonnio,
To incorporate custom MATLAB functions within Simulink, you can utilize the MATLAB Function block. This block allows you to define custom functions in Simulink models using MATLAB code.
For more details, please refer to the following MathWorks documentation: https://www.mathworks.com/help/simulink/ug/what-is-a-matlab-function-block.html
Hope this helps!

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Mzo. de 2016

Respondida:

ag
el 5 de Nov. de 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by