changed value of the specific matrix

1 view (last 30 days)
i have matrix 20402x1
what i want is changes line of 3000 to 3100 =1 and other line 1500-1600 =1
any suggestion

Accepted Answer

David Hill
David Hill on 7 Oct 2021
yourMatrix(3000:3100)=1;
yourMatrix(1500:1600)=1;

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!