changed value of the specific matrix

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

Risposta accettata

David Hill
David Hill il 7 Ott 2021
yourMatrix(3000:3100)=1;
yourMatrix(1500:1600)=1;

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by