- 积分
- 3
- 注册时间
- 2002-12-22
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2004-11-15 13:51:57
|
显示全部楼层
来自 湖北武汉
Re:一个MATLAB画图问题
可以把,试试plotyy:
PLOTYY Graphs with y tick labels on the left and right.
PLOTYY(X1,Y1,X2,Y2) plots Y1 versus X1 with y-axis labeling
on the left and plots Y2 versus X2 with y-axis labeling on
the right.
PLOTYY(X1,Y1,X2,Y2,FUN) uses the plotting function FUN
instead of PLOT to produce each plot. FUN should be a
function handle to a plotting function, e.g. @plot, @semilogx,
@semilogy, @loglog ,@stem, etc. that accepts the syntax H = FUN(X,Y).
PLOTYY(X1,Y1,X2,Y2,FUN1,FUN2) uses FUN1(X1,Y1) to plot the data for
the left axes and FUN2(X1,Y1) to plot the data for the right axes.
[AX,H1,H2] = PLOTYY(...) returns the handles of the two axes created in
AX and the handles of the graphics objects from each plot in H1
and H2. AX(1) is the left axes and AX(2) is the right axes.
See also PLOT, @. |
|