找回密码
 注册
Simdroid-非首页
查看: 223|回复: 4

一个MATLAB画图问题

[复制链接]
发表于 2004-11-15 13:25:45 | 显示全部楼层 |阅读模式 来自 辽宁沈阳
请问要把两个图画在一起,X轴一样,但是Y轴需要两个坐标,我的意思是这两条曲线的Y轴的单位不一样,如一个是毫米,另一个是弧度,请问能否把这两个曲线画在一起
发表于 2004-11-15 13:51:57 | 显示全部楼层 来自 湖北武汉

Re:一个MATLAB画图问题

Simdroid开发平台
可以把,试试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, @.
 楼主| 发表于 2004-11-17 13:43:31 | 显示全部楼层 来自 辽宁沈阳

Re:一个MATLAB画图问题

可以,呵呵谢谢帮助
along1980 该用户已被删除
发表于 2004-11-19 12:58:31 | 显示全部楼层 来自 陕西西安
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2014-1-1 09:55:31 | 显示全部楼层 来自 浙江金华
应该是可以的,画左右两个y轴就可以了。
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-10-1 21:37 , Processed in 0.034946 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表