i would like to create a 3x9 matrix which contains numbers from 1 to 9. how to overlap of every 3x3 matrix
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
sir, 
Like hankel, i want to create a matrix.but overlapping of 3x3 matrix.how to do this
댓글 수: 2
  Guillaume
      
      
 2019년 11월 1일
				yes, 1,1 means first row first column
1,1     1,2       1,3     1,2     1,3     1,4       1,3    1,4    1,5 ...etc
2,1      2,2      2,3      2,2     2,3     2,4      2,3     2,4    2,5 ....etc
3,1       3,2     3,3      3,2     3,3     3,4      3,3      3,4    3,5 ....etc
i tried this code but i cant get this answer
clear all
close all
a= [1:10];
for i=2:3 
    a(i,:)=a(i-1,:)+3;
end
답변 (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!

