Borrar filtros
Borrar filtros

for loop Matlab code in Simulink

3 visualizaciones (últimos 30 días)
Mirzobek Malikov
Mirzobek Malikov el 4 de Oct. de 2022
Comentada: Goncalo Torres el 4 de Oct. de 2022
Hi,
I was coding on Matlab by using for loop to get different values at each time. Now, I have to use the data in Simulink at each run time. Means, once run the Matlab code then some output from Matlab must be sent to the Simulink, Simulink will use the ouput to run the blockes. The next step time, the second value must be goot from the Matlab firsst then will be sent to the Simulink. So, at each time step Matlab and Simulink must have to work together. I would be so appreciated if someone can help me, it has been a week still couldn't solve it.
Matlab code have for loop, but I wanna use the for loop for the whole. But I wanna run the Matlab and Simulink simultneously.
  1 comentario
Goncalo Torres
Goncalo Torres el 4 de Oct. de 2022
What if you use a MATLAB function block in Simulink and implement your code there?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by