MATLAB Answers

How do I only take the first 1000 elements of a vector?

7 views (last 30 days)
My task is to use the first 1000 elements in a vector. So how do I only take the first 1000 elements of a vector? I am new to MATLAB, so any help would be appreciated. I tried finding a source to read about how to do this, but could not find one. Thank you!

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 13 Oct 2019
NameOfVariable(1:1000)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products