shifting down elements in a matrix with nans

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?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Jun. 2012

1 Stimme

YourMatrix = [nan(10,1); YourMatrix];

2 Kommentare

Jan
Jan am 18 Jul. 2012
@Walter: Is this forum really the right location to learn these basics?
Walter Roberson
Walter Roberson am 18 Jul. 2012
It is better than learning MATLAB on the streets ;-)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation of 2-D Selections in 3-D Grids finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by