shifting down elements in a matrix with nans

1 回表示 (過去 30 日間)
Mate 2u
Mate 2u 2012 年 6 月 9 日
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?

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 9 日
YourMatrix = [nan(10,1); YourMatrix];
  2 件のコメント
Jan
Jan 2012 年 7 月 18 日
@Walter: Is this forum really the right location to learn these basics?
Walter Roberson
Walter Roberson 2012 年 7 月 18 日
It is better than learning MATLAB on the streets ;-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by