i would like to create a 3x9 matrix which contains numbers from 1 to 9. how to overlap of every 3x3 matrix

6 visualizzazioni (ultimi 30 giorni)
sir,
Like hankel, i want to create a matrix.but overlapping of 3x3 matrix.how to do this
  2 Commenti
Guillaume
Guillaume il 1 Nov 2019
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

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by