MATLAB Answers

0

How to delete rows from an array?

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??

  0 Comments

Sign in to comment.

2 Answers

Answer by Arvind Sathyanarayanan on 1 Mar 2019
Edited by Arvind Sathyanarayanan on 1 Mar 2019
 Accepted Answer

Set the rows you want to delete to null. Example:
x(550:end,:)=[];

  1 Comment

Thank you so much!

Sign in to comment.


Answer by Walter Roberson
on 1 Mar 2019

a = a(1:549,:);

  0 Comments

Sign in to comment.