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
Guillaume 2019-11-1
parvatham vijay comment originally posted as an answer moved here:
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 CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by