필터 지우기
필터 지우기

implement for loop in simulink with function block

조회 수: 7 (최근 30일)
Suma
Suma 2014년 9월 6일
댓글: Wassim El Falou 2015년 3월 4일
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
bouchra ayoubi
bouchra ayoubi 2015년 3월 4일
hi, i have the same question :(
Wassim El Falou
Wassim El Falou 2015년 3월 4일
Look at this Link http://www.mathworks.com/help/simulink/slref/foriterator.html and see the Simulink -- Ports and subsystems Library
Wassim :)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by