Azzera filtri
Azzera filtri

for in MATLAB Function block in Simulink

1 visualizzazione (ultimi 30 giorni)
Facing trouble in implementing our algorithm in Simulink which contains for loop. For loop in MATLAB Function is not running properly.
We have MATLAB code which contains for loops. For loops ain't implemented in Simulink by us.
Please help us.
Waiting for reply.

Risposta accettata

Andrey Kiselnikov
Andrey Kiselnikov il 22 Lug 2019
Modificato: Andrey Kiselnikov il 22 Lug 2019
There are two right ways to solve you problem:
  1. Refactor your code with replacing loops with matrix operations https://www.mathworks.com/matlabcentral/answers/369868-how-do-i-replace-my-for-loops-using-matrix-manipulation
  2. Build your algorithms with Stateflow
  5 Commenti
Maitreyee Mordekar
Maitreyee Mordekar il 24 Lug 2019
Hello Hemant,
That's great to hear!
All the best,
Maitreyee
Andrey Kiselnikov
Andrey Kiselnikov il 24 Lug 2019
If it was helpful you can mark answer as accepted ;)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Parrot Minidrones 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