help deleting rows with column value in a table of data

조회 수: 1 (최근 30일)
Maritza Torres
Maritza Torres 2019년 12월 9일
편집: Maritza Torres 2019년 12월 9일
I need help deleting all the rows with value of '2' in the array column in the data on my table

답변 (2개)

Bhaskar R
Bhaskar R 2019년 12월 9일
편집: Bhaskar R 2019년 12월 9일
Suppose your table data stored in the variable T
T(find(T.ARRAY == 2),:) = [];
  댓글 수: 3
Bhaskar R
Bhaskar R 2019년 12월 9일
편집: Bhaskar R 2019년 12월 9일
Can you provide small portion of your table data in mat file
Bhaskar R
Bhaskar R 2019년 12월 9일
No, it is not a mat (MATLAB saved workspace file). It is an image.
Run the below command
save tablefile ABER1001
You will see the tablefile.mat in the current working directory.
Share tablefile.mat file

댓글을 달려면 로그인하십시오.


Maritza Torres
Maritza Torres 2019년 12월 9일
  댓글 수: 2
Bhaskar R
Bhaskar R 2019년 12월 9일
Run this command
ABER1001(find(ABER1001.ARRAY == 2),:) = [];
Maritza Torres
Maritza Torres 2019년 12월 9일
It worked. Thank you so much for all of your help!!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by