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

2 次查看(过去 30 天)
i have a vector of A =1x201
i want to insert zeros from column 116 to 170.
Any help will be appriciateable

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by