Interleaving vectors in simulink
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi all,
I have two vectors in simulink which I want to merge into a single one. These vectors do not have the same length, the ratio is 10:1.
Example:
Vector1 =
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Vector2 =
2 2
I want to interleave one value of the short vector for each ten of the long one:
DesiredVector =
1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2
Is there any block in Simulink which achieves this?
Thanks
댓글 수: 0
답변 (1개)
Tarunbir Gambhir
2021년 5월 28일
I am not sure if there exist a block that specifically does this. However, this task can be done easily by creating a custom MATLAB function block.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Large-Scale Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!