Copy one matrix into another
103 次查看(过去 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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!