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.

 Risposta accettata

Brett Shoelson
Brett Shoelson il 10 Feb 2011

0 voti

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

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by