Deleting multiple cell rows after using uiimport

2 ビュー (過去 30 日間)
Benjamin
Benjamin 2012 年 6 月 15 日
Is there a way to delete multiple rows from an imported csv file after using uiimport()? For example: rows 1-8, 917-932, 1841-1856... etc The reason for needing these rows deleted is that they give invalid numbers and mess up analysis and plotting.
Thanks

採用された回答

Kye Taylor
Kye Taylor 2012 年 6 月 15 日
If C is a cell, delete rows j through k using
C(j:k,:) = []; % note use of parentheses and not braces to index
  5 件のコメント
Benjamin
Benjamin 2012 年 6 月 15 日
Doing it all as one, didn't work correctly. it provided this error: A null assignment can have only one non-colon index.
But after followings Walter's idea it worked out. But it is only being applied to the plot which is great, but it is still showing those rows in my table. Is there a way to remove them from both?
Benjamin
Benjamin 2012 年 6 月 15 日
Nevermind, fixed it. Thanks so much guys!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by