insert zero into matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a matrix M whose size is 96 x1, I have to insert zero from 89th row to 170 th row..Any idea how to do this ??
0 Kommentare
Akzeptierte Antwort
Jan
am 16 Jul. 2021
You cannot "insert" a 0 in row 170, if the vector has 96 rows only. You can append zeros only:
x = rand(96, 1);
x(89:170) = 0;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!