changed value of the specific matrix

1 次查看(过去 30 天)
i have matrix 20402x1
what i want is changes line of 3000 to 3100 =1 and other line 1500-1600 =1
any suggestion

采纳的回答

David Hill
David Hill 2021-10-7
yourMatrix(3000:3100)=1;
yourMatrix(1500:1600)=1;

更多回答(0 个)

类别

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

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by