shifting down elements in a matrix with nans

3 views (last 30 days)
hi there I have a 200x1 matrix where I want to shift down the elements 10 places to get a 210x1 matrix with 10 nans at the start. Any help?

Accepted Answer

Walter Roberson
Walter Roberson on 9 Jun 2012
YourMatrix = [nan(10,1); YourMatrix];
  2 Comments
Jan
Jan on 18 Jul 2012
@Walter: Is this forum really the right location to learn these basics?

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!