필터 지우기
필터 지우기

Deleting rows from array

조회 수: 1 (최근 30일)
Rachel Ramirez
Rachel Ramirez 2020년 12월 3일
답변: David Hill 2020년 12월 3일
If I have an array with 20 rows and 3 columns but I want to delete any row in which the 3rd column is greater than 5, how would I do it?

채택된 답변

David Hill
David Hill 2020년 12월 3일
a(a(:,3)>5,:)=[];

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by