shifting down elements in a matrix with nans

1 次查看(过去 30 天)
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];

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by