i would like to create a 3x9 matrix which contains numbers from 1 to 9. how to overlap of every 3x3 matrix
7 views (last 30 days)
Show older comments
sir,
Like hankel, i want to create a matrix.but overlapping of 3x3 matrix.how to do this
2 Comments
Guillaume
on 1 Nov 2019
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
Answers (0)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!