How to delete rows from an array?

조회 수: 2 (최근 30일)
Guido Pastore
Guido Pastore 2019년 3월 1일
댓글: Guido Pastore 2019년 3월 1일
Given an array of double of size 929x1, I want to obtain a reduced double array with the first 549 lines of the previous one. In short, given a double-sized array of 929x1, we want to eliminate the last 380 lines. How can I do??

채택된 답변

Arvind Sathyanarayanan
Arvind Sathyanarayanan 2019년 3월 1일
편집: Arvind Sathyanarayanan 2019년 3월 1일
Set the rows you want to delete to null. Example:
x(550:end,:)=[];

추가 답변 (1개)

Walter Roberson
Walter Roberson 2019년 3월 1일
a = a(1:549,:);

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by