how to insert zeros in a certain column of only one row.

i have a vector of A =1x201
i want to insert zeros from column 116 to 170.
Any help will be appriciateable

 Réponse acceptée

You can do this
A = ones(1,210);
A(116:170) = 0;

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by