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?

 채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 9일

1 개 추천

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

댓글 수: 2

Jan
Jan 2012년 7월 18일
@Walter: Is this forum really the right location to learn these basics?
It is better than learning MATLAB on the streets ;-)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interpolation of 2-D Selections in 3-D Grids에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by