Generate matrix with a pattern
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!