How to create multidimensional array with specified row values
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Hello, I am stack a little, i would want to an n by n matrix with specified row values, for exemple for a six by 7 matrix, i would like row number one be consisting of only 1s, row ttwo 2s, zand so forth. So that the matrix would look like matrix A inserted below (Note that tis is just an example I want to make a large matrix so that i can use it to manipulate another matrix, please help). Is there a way I can do this for a large matrix without keying in values manually.
A =
     1     1     1     1     1     1     1
     2     2     2     2     2     2     2
     3     3     3     3     3     3     3
     4     4     4     4     4     4     4
     5     5     5     5     5     5     5
     6     6     6     6     6     6     6
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

