刻度设计如下clearclcr=3/2;h=0:0.1:3;v=pi*h.^2.*(3*r-h)/3;a=axes;hold onarrayfun(@(h)plot([-.1 0],[h h]),h);arrayfun(@(n)text(-.1,h(n),sprintf('%-.3f',v(n)),'HorizontalAlignment','right'),1:length(h))plot([-.1 -.1 .1 .1 -.1],h([1,end,end,1,1]),'k')set(a,'xlim',[-1,1...
|