I want to extend an array like this:
A = [1 2 3 4];
B = [2 3 5 7];
C =[1 1 2 2 2 3 3 3 3 3 4 4 4 4 4 4 4];
How could I do that?

 채택된 답변

madhan ravi
madhan ravi 2019년 4월 30일

1 개 추천

repelem(A,B)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Types에 대해 자세히 알아보기

태그

질문:

2019년 4월 30일

댓글:

2019년 4월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by