the way find the specific data select
1 回表示 (過去 30 日間)
古いコメントを表示
i have a data sheet and just want specific data
and the data number is arithmetic sequenc
how can i select?
this is my code
data=load('aa.txt');
i=25
for
i=i+62
end
A=data(i,:);
0 件のコメント
回答 (1 件)
KSSV
2021 年 6 月 1 日
Read about MATLAB indexing an array. If you want data from 25 to 100, just use:
iwant = data(25:100,:) ;
If you are looking to pick on some criteria, read about inequalitites. You can get indices using >, <, ==
2 件のコメント
KSSV
2021 年 6 月 1 日
Make the indices into an array and extract.
idx = [25 87 149];
data = data(idx, :)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!