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

2 visualizzazioni (ultimi 30 giorni)
i have a vector of A =1x201
i want to insert zeros from column 116 to 170.
Any help will be appriciateable

Risposta accettata

Akshit Bagde
Akshit Bagde il 6 Lug 2021
You can do this
A = ones(1,210);
A(116:170) = 0;

Più risposte (0)

Categorie

Scopri di più su Just for fun in Help Center 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