Copy one matrix into another

39 次查看(过去 30 天)
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
c=rand(9,9) %an example
a=ones(3,3)
c(4:6,4:6)=a
  3 个评论
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 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by