Borrar filtros
Borrar filtros

implement for loop in simulink with function block

7 visualizaciones (últimos 30 días)
Suma
Suma el 6 de Sept. de 2014
Comentada: Wassim El Falou el 4 de Mzo. de 2015
hi,
i have a source in simulink x = rand which outputs single random value and other function blocks acts on this.
i wanted to generate k values source data and each function block should acts on each x(k) input eg in script we use for loop to generate x values and we can manipulate the different x values, how to implement this in simulink with function blocks if true for k = 1:10; x(k) = rand is a source
and function block should act on each x(k),
y(k) = some_function(x(k)) end
How to implement this in simulink?
thanks
  2 comentarios
bouchra ayoubi
bouchra ayoubi el 4 de Mzo. de 2015
hi, i have the same question :(
Wassim El Falou
Wassim El Falou el 4 de Mzo. de 2015
Look at this Link http://www.mathworks.com/help/simulink/slref/foriterator.html and see the Simulink -- Ports and subsystems Library
Wassim :)

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by