How to divide this array problem ?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Muhammad Hafiz
il 7 Giu 2018
Modificato: monika shivhare
il 7 Giu 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 Commenti
Risposta accettata
monika shivhare
il 7 Giu 2018
data = [6 7 5 3 4 1 2];
dataA =[data(1) data(2:2:end)];
dataB =[data(1:2:end)];
2 Commenti
monika shivhare
il 7 Giu 2018
Modificato: monika shivhare
il 7 Giu 2018
dataA=dataA(2:end);
dataB=dataB(2:end);
alternatively, use
dataA(1)=[];
dataB(1)=[];
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Earth, Ocean, and Atmospheric Sciences 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!