How to extend array?

2 visualizzazioni (ultimi 30 giorni)
Rikke
Rikke il 30 Apr 2019
Commentato: Rikke il 30 Apr 2019
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?

Risposta accettata

madhan ravi
madhan ravi il 30 Apr 2019
repelem(A,B)

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by