i would like to create a 3x9 matrix which contains numbers from 1 to 9. how to overlap of every 3x3 matrix
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
sir,
Like hankel, i want to create a matrix.but overlapping of 3x3 matrix.how to do this
2 Kommentare
Guillaume
am 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
Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!