How to divide this array problem ?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
monika shivhare
2018 年 6 月 7 日
data = [6 7 5 3 4 1 2];
dataA =[data(1) data(2:2:end)];
dataB =[data(1:2:end)];
2 件のコメント
monika shivhare
2018 年 6 月 7 日
編集済み: monika shivhare
2018 年 6 月 7 日
dataA=dataA(2:end);
dataB=dataB(2:end);
alternatively, use
dataA(1)=[];
dataB(1)=[];
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Earth, Ocean, and Atmospheric Sciences についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!