Copy one matrix into another
39 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
dakhli mohamed
le 4 Nov 2018
Commenté : Walter Roberson
le 5 Oct 2020
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 commentaires
Réponse acceptée
madhan ravi
le 4 Nov 2018
Modifié(e) : madhan ravi
le 4 Nov 2018
c=rand(9,9) %an example
a=ones(3,3)
c(4:6,4:6)=a
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!