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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by