I have a matrix of 3 * 3 and I want to copy it in another matrix of size 9 * 9 in the central position
A=hyperImage(3,C1(1,1),C2(1,1),C3(1,1));
Fenetre=zeros(9,9); for i=4:6 for j=4:6 Fenetre=repmat(A,1); end
end

 Akzeptierte Antwort

madhan ravi
madhan ravi am 4 Nov. 2018
Bearbeitet: madhan ravi am 4 Nov. 2018

3 Stimmen

c=rand(9,9) %an example
a=ones(3,3)
c(4:6,4:6)=a

3 Kommentare

dakhli mohamed
dakhli mohamed am 4 Nov. 2018
thank you for you madhan ravi :D
madhan ravi
madhan ravi am 4 Nov. 2018
Anytime :) make sure to accept the answer
Walter Roberson
Walter Roberson am 5 Okt. 2020
Ali Moh comments to madhan ravi:
You are an artist :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by