请问一下为什么显示ZData 为非有限时,无法显示等高线 ,怎么解决,
Show older comments
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);
Accepted Answer
More Answers (0)
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!