How to implement repelem in Simulink?

조회 수: 8 (최근 30일)
Vamshi
Vamshi 2016년 10월 12일
Is there a Simulink block equivalent to 'repelem' function in Matlab? I have a vector which defines the number of times each element of another vector should be repeated. I need to generate the new vector in simulink without using user defined functions. For example:
v=[1 1 4 2 1 1];
A=[1 2 3 4 5 6];
B=repelem(A,v)
Is there a simulink block which accepts vectors A and v as inputs and give B as output?

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by