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

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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by