Azzera filtri
Azzera filtri

for loop Matlab code in Simulink

3 visualizzazioni (ultimi 30 giorni)
Mirzobek Malikov
Mirzobek Malikov il 4 Ott 2022
Commentato: Goncalo Torres il 4 Ott 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 Commento
Goncalo Torres
Goncalo Torres il 4 Ott 2022
What if you use a MATLAB function block in Simulink and implement your code there?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Simulink Functions in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by