Inserting numbers into a vector

3 次查看(过去 30 天)
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
Michael, See if you can figure it out from this response:
Post back if you still have difficulties.
Cheers,
Brett

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by