Matrix Fill with same number sequence
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
TheDice
am 20 Apr. 2021
Kommentiert: Walter Roberson
am 20 Apr. 2021
How can I fill a matrix with the same sequence of numbers?
I want a matrix in which the first row contains 20 and 30. this should then also be in the next five rows.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Apr. 2021
YourMatrix(1:6,1:2:end) = 20;
YourMatrix(1:6,2:2:end) = 30;
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays 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!