Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
初级会员
注册日期: 2008-12-26
年龄: 40
帖子: 2
声望力: 0 ![]() |
![]()
我运行时下面的程序时,总是出现程序后面的错误提示:
% close all open figure window close all % create the mesh [x,y]=meshgrid(linspace(-4,4,50)); % calculate z-values z=3*x./(x.^2+y.^2+1); % draw and label the contours [c,h]=contour(x,y,z,10); clabel(c,h,'manual') % hold the plot hold on % labels and title xlabel('x-axis') ylabel('y-axis') title('Level curves and gradient field of f(x,y) = 3x/(x^2 + y^2 + 1).') % create the mesh locations for the gradient vectors [x,y]=meshgrid(-4:.5:4); % compute the gradient of F Fx=(3*y.^2-3*x.^2+3)./(x.^2+y.^2+1).^2; Fy=-6*x.*y./(x.^2+y.^2+1).^2; % sketch the gradient field quiver(x,y,Fx,Fy) % turn on the grid grid on axis equal ??? Attempt to execute SCRIPT figure as a function. Error in ==> gcf at 33 h = figure; Error in ==> newplot at 61 fig = gcf; Error in ==> contour at 64 cax = newplot(cax); 就是上面的三行错误提示,请各位高手帮帮忙啊:lovely: 谢谢了 |
![]() |
![]() |
![]() |
|
|
![]() |
||||
主题 | 主题作者 | 版面 | 回复 | 最后发表 |
毕业设计求助:关于裂纹的漏磁检测 | little239 | ANSYS论坛 | 0 | 2009-05-08 09:29 |
[菜鸟求助两个问题]Linux下画图画不出? | xhwubai | Mathematica论坛 | 1 | 2009-02-16 21:04 |
如何实现gui窗口嵌套 | beulah | MATLAB论坛 | 1 | 2008-12-28 17:57 |
[求助]matlab神经网络工具箱中‘train’和‘learn’类型函数有什么区别? | haixiaofan-007 | MATLAB论坛 | 1 | 2008-12-02 14:46 |
各位高手,小弟现在要求用模型做点分析,望指教 | felixluo | MATLAB论坛 | 0 | 2008-11-18 11:20 |