Inserting numbers into a vector

I have a vector similar to [-3 -2 -1 1 2 3] and I would like to add a zero in the center so the new vector would be [-3 -2 -1 0 1 2 3] but I am unsure of how to do this.

 채택된 답변

Brett Shoelson
Brett Shoelson 2011년 2월 10일

0 개 추천

Michael, See if you can figure it out from this response:
Post back if you still have difficulties.
Cheers,
Brett

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by