shifting down elements in a matrix with nans

1 vue (au cours des 30 derniers jours)
Mate 2u
Mate 2u le 9 Juin 2012
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?

Réponse acceptée

Walter Roberson
Walter Roberson le 9 Juin 2012
YourMatrix = [nan(10,1); YourMatrix];
  2 commentaires
Jan
Jan le 18 Juil 2012
@Walter: Is this forum really the right location to learn these basics?
Walter Roberson
Walter Roberson le 18 Juil 2012
It is better than learning MATLAB on the streets ;-)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by