<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">

Exported from Notepad++
clc; clear all; close all; a=[1 2 3;5 7 6; 4 5 6]; b=zeros(5,5); [m n ]=size(a); [p q]= size(b); for i=1:m for j=1:n b(i+1,j+1)=a(i,j); end end disp(a); disp(b);