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

 採用された回答

madhan ravi
madhan ravi 2018 年 11 月 4 日
編集済み: madhan ravi 2018 年 11 月 4 日

3 投票

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

3 件のコメント

dakhli mohamed
dakhli mohamed 2018 年 11 月 4 日
thank you for you madhan ravi :D
madhan ravi
madhan ravi 2018 年 11 月 4 日
Anytime :) make sure to accept the answer
Walter Roberson
Walter Roberson 2020 年 10 月 5 日
Ali Moh comments to madhan ravi:
You are an artist :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by