请问一下为什么显示ZData 为非有限时,无法显示等高线 ,怎么解决,
Ältere Kommentare anzeigen
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);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Subplots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!