MATLAB如何将经过循环和判断的这个Dnm输出成一个数组或矩阵呀

N=input('enter');
for n=0:1:N
for m= -n:1:n
a = n-m;
b = n+m;
if m<0
Dnm=a+b;
else
Dnm=a-b;
end
end

end