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

2 visualizaciones (últimos 30 días)
i have a vector of A =1x201
i want to insert zeros from column 116 to 170.
Any help will be appriciateable

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by