changed value of the specific matrix

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

yourMatrix(3000:3100)=1;
yourMatrix(1500:1600)=1;

More Answers (0)

Categories

Products

Release

R2020b

Community Treasure Hunt

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

Start Hunting!