![]() |
如何在MATLAB中获取轴的上限(和下限)?
如何在MATLAB图形中找到轴的最小值和最大值?
[B]回答:[/B] 这是针对当前轴(即[URL="http://www.mathworks.com/help/techdoc/ref/gca.html"]gca[/URL] )的方法: xLimits = get(gca,'XLim'); %# Get the range of the x axis yLimits = get(gca,'YLim'); %# Get the range of the y axis zLimits = get(gca,'ZLim'); %# Get the range of the z axis 上面的每个变量都是一个1×2数组,其中包含各个轴的最小值和最大值。您可以查看[URL="http://www.mathworks.com/help/techdoc/ref/axes_props.html#XLim"]有关轴属性的文档以[/URL]获取更多信息。 [url=https://stackoverflow.com/questions/3965344]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 23:14。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.