Generate matrix with a pattern
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Michael Henry
am 14 Dez. 2020
Bearbeitet: Michael Henry
am 14 Dez. 2020
Hello guys,
I need your help please. If I want to generate matrix given the rows and columns Cx(NXC) like this

where here, C = 3, N = 4.
The first row consists of three elements which is C then it repeats itself for 4 times which is N. The second row starts with 0 then the same pattern. It looks like diagonal matrices.
The most important thing is to be changeable according to any value of C and N but with the same pattern. Always N >C
Many thanks for your help!
0 Kommentare
Akzeptierte Antwort
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!

