hangui 发表于 2006-4-4 23:56

一个弱弱的画图问题,大家帮帮忙啊~~

我想构建一个函数,结果运行如下:<BR>&gt;&gt;=meshgrid(0:1000:10000,0:0.1:1);z=5*x^(-0.05)*(x-3000+y*1500)-400*y^2-1000*y*5*x^(-0.05);<BR>Warning: Matrix is singular to working precision.<BR>(Type "warning off MATLAB:singularMatrix" to suppress this warning.)<BR>Warning: Matrix is singular to working precision.<BR>(Type "warning off MATLAB:singularMatrix" to suppress this warning.)<BR>&gt;&gt; surf(x,y,z);<BR><BR>但是最后给的图却是只有网格,没有函数,咋回事啊?<BR>大侠们帮帮忙阿~~

cdwxg 发表于 2006-4-5 00:03

上面的*与^都用.*跟.^试验下
页: [1]
查看完整版本: 一个弱弱的画图问题,大家帮帮忙啊~~