matlab我想求一个极限,报错了

function M = fmx( n )
%
i=1:n;
j=i';
e=ones(n,1);
ii=e*i;
jj=j*e';
M=f(ii,jj);
end

function y = f(m,n)
%函数,y=m+n
y=m+n;

end
这个是函数

syms n
limit(det(fmx(n)),n,inf)
错误使用 : (line 38)
Cannot compute the number of steps from 1 to n by 1.

出错 fmx (line 3)
i=1:n;
????为什么求不了

http://jingyan.baidu.com/article/425e69e6dca3babe15fc16bb.html