How to divide this array problem ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Muhammad Hafiz
le 7 Juin 2018
Modifié(e) : monika shivhare
le 7 Juin 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 commentaires
Réponse acceptée
monika shivhare
le 7 Juin 2018
data = [6 7 5 3 4 1 2];
dataA =[data(1) data(2:2:end)];
dataB =[data(1:2:end)];
2 commentaires
monika shivhare
le 7 Juin 2018
Modifié(e) : monika shivhare
le 7 Juin 2018
dataA=dataA(2:end);
dataB=dataB(2:end);
alternatively, use
dataA(1)=[];
dataB(1)=[];
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Earth, Ocean, and Atmospheric Sciences dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!