convrt matrix into 8*8

조회 수: 1 (최근 30일)
Jitesh Bhanushali
Jitesh Bhanushali 2014년 3월 31일
댓글: Andreas Goser 2014년 3월 31일
sir i want to conver 4*4 matrix into 8*8 matrix by adding zeros ..what is matlab code for that

채택된 답변

Andreas Goser
Andreas Goser 2014년 3월 31일
Your description is not clear. One example however:
A=zeros(8);
A(1:4,1:4)=B; % where B is your 4*4 matrix
  댓글 수: 2
Jitesh Bhanushali
Jitesh Bhanushali 2014년 3월 31일
thank u sir i have 64*64 matrix and i want to convert every 4*4 block of 64*64 matrix into 8*8 matrix..how to do this
Andreas Goser
Andreas Goser 2014년 3월 31일
Depends on the conversion rule you want to apply. Can you give one example with actual numbers before and after?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by