请问一下为什么显示ZData 为非有限时,无法显示等高线 ,怎么解决,
显示 更早的评论
A=100;
[h,x]=meshgrid(linspace(1,10,50),linspace(1,2,50));
c=(A-h^2*cot(x))/h;
p=c+(2*h/sin(x));
subplot(1,2,1);
z=contour(h,x,p,600,'k');
subplot(1,2,2);
surfc(h,x,p);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!