Generate matrix with a pattern
조회 수: 3 (최근 30일)
이전 댓글 표시
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!