Info

This question is closed. Reopen it to edit or answer.

How to implement loop in simulink

1 view (last 30 days)
omarahmed.m
omarahmed.m on 6 Mar 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
I wrote a code on matlab using for loop command. i want to implement the same code on simulink, so how can i implement the for loop in simulink, note that inside the for loop there are many operations like filtering, additions, FFT, IFFT and multiplications, so how can the simulink do these operations many times as i want? can anyone help?

Answers (1)

Prasanna Venkateshan
Prasanna Venkateshan on 7 Jul 2020
Edited: Prasanna Venkateshan on 7 Jul 2020
You can use these methods to implement loop in simulink: Iterator and you can matlab function block to use your matlab code: MATLABFunction

Community Treasure Hunt

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

Start Hunting!