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

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

Accepted Answer

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

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!