Copy one matrix into another

조회 수: 151 (최근 30일)
dakhli mohamed
dakhli mohamed 2018년 11월 4일
댓글: Walter Roberson 2020년 10월 5일
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