How to extract elements from an array in three different array
Ältere Kommentare anzeigen
suppose i have an array which stores 19 elements. How to extract first seven elements in one, then next five in another and remaining in third.
Akzeptierte Antwort
Weitere Antworten (1)
the cyclist
am 8 Dez. 2015
One way:
A = rand(1,19);
B1 = A(1:7);
B2 = A(8:12);
B3 = A(13:end);
Kategorien
Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!