How to divide this array problem ?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhammad Hafiz
am 7 Jun. 2018
Bearbeitet: monika shivhare
am 7 Jun. 2018
for example :
data = [6
7
5
3
4
1
2]
dataA = [6 7 3 1]
dataB = [6 5 4 2]
please I little bit confuse about this ,,,
0 Kommentare
Akzeptierte Antwort
monika shivhare
am 7 Jun. 2018
data = [6 7 5 3 4 1 2];
dataA =[data(1) data(2:2:end)];
dataB =[data(1:2:end)];
2 Kommentare
monika shivhare
am 7 Jun. 2018
Bearbeitet: monika shivhare
am 7 Jun. 2018
dataA=dataA(2:end);
dataB=dataB(2:end);
alternatively, use
dataA(1)=[];
dataB(1)=[];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Earth, Ocean, and Atmospheric Sciences finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!