请问一下为什么显示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 개 추천

仅供参考
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개)

카테고리

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!