Remove row in numeric data

1 回表示 (過去 30 日間)
Jeong_evolution
Jeong_evolution 2016 年 11 月 29 日
コメント済み: Jeong_evolution 2016 年 11 月 29 日
Hi all
I have 200 x 10 numeric data.
In data set, I want to remove 2,3, 5,6, 8,9,...197,198
Finally, row in Dataset remain 1,4,7,10,13,16,19,..199

採用された回答

Roger Stafford
Roger Stafford 2016 年 11 月 29 日
編集済み: Roger Stafford 2016 年 11 月 29 日
Dataset = Dataset(1:3:end,:);
  1 件のコメント
Jeong_evolution
Jeong_evolution 2016 年 11 月 29 日
Thanks, Roger. I was thoughtless to speak that way. ^^:

サインインしてコメントする。

その他の回答 (1 件)

KSSV
KSSV 2016 年 11 月 29 日
K = rand(200,10) ;
% remove 7 th column
k(:,7) = [] ;
% remove 70 the row
k(70,:) = [] ;
  1 件のコメント
Jeong_evolution
Jeong_evolution 2016 年 11 月 29 日
Thanks, KSSV ! Good Answer !!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeOther Formats についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by