MATLAB: Convrt matrix into 8*8 convert matrix sir i want to conver 4*4 matrix into 8*8 matrix by adding zeros ..what is matlab code for that Best Answer Your description is not clear. One example however:A=zeros(8);A(1:4,1:4)=B; % where B is your 4*4 matrix Related SolutionsMATLAB: Convert matrix into 8*8 originalArray = ones(64);C = mat2cell(A , 4*ones(1,16) , 4*ones(1,16))C = cellfun(@(x) padarray(x , [2,2]) , C , 'Un' , 0)outputArray = cell2mat(C) MATLAB: Extract 4*4 matrix from 8*8 blockproc(yourimage,[8 8],@(x)x.data(1:4,1:4)) Related QuestionMatrix with numerical sequenceHow create matrix 8*88*8 blocking in matlabAccess different elements of matrixReshape a photo to 8*8 blocks
Best Answer