MATLAB: How to translate the following code from Mathematica to Matlab

mathematicatable

I need to construct a matrix similar to the following:
l = 2; m = 4; Table[(2 x – y*l)/m, {x, 0, 5}, {y, 0, 5}] // MatrixForm
How can I do that in Matlab?

Best Answer

Thank you all for the answers
I've found a generic (edit: specific) way through the following script (with the above example illustrated)
a=1; b=100;
format rat
y=zeros(5,5);
for l=1:5
for m=1:5
y(l,m)=1/(a*((b-1)*l)/((b+1)*l+1))*KroneckerDelta(l,m)
end;
end;