【请教】如何在同一张图里绘制柱状图和斜线?

9 views
Skip to first unread message

Yuanyuan ZHANG

unread,
Mar 27, 2011, 4:03:17 AM3/27/11
to matl...@googlegroups.com
hi, 请教各位大牛,
如何在同一张图里绘制柱状图和斜线?

期待各位大牛能指点下,不胜感激啊!

沈超

unread,
Mar 27, 2011, 4:16:13 AM3/27/11
to matl...@googlegroups.com, Yuanyuan ZHANG
x = sin(0:0.2:2);bar(x);hold on; plot(x,'g-*','LineWidth',2);stairs(x,'r-o','LineWidth',2);grid on;

2011/3/27 Yuanyuan ZHANG <vivi...@gmail.com>
hi, 请教各位大牛,
如何在同一张图里绘制柱状图和斜线?

期待各位大牛能指点下,不胜感激啊!

--
您收到此邮件是因为您订阅了 Google 网上论坛的“MATLAB技术论坛”论坛。
要向此网上论坛发帖,请发送电子邮件至 matl...@googlegroups.com
要取消订阅此网上论坛,请发送电子邮件至 matlabsky+...@googlegroups.com
若有更多问题,请通过 http://groups.google.com/group/matlabsky?hl=zh-CN 访问此网上论坛。

Yuanyuan Chang

unread,
Mar 27, 2011, 4:23:23 AM3/27/11
to 沈超, matl...@googlegroups.com
试了下,非常好使,感谢 沈同学!

2011/3/27 沈超 <wwel...@gmail.com>



--
张媛媛
武汉大学国际软件学院( 430079 )
Yuanyuan, ZHANG
International School of Software, Software Engineering, Wuhan University
Hubei, 430079, China
Reply all
Reply to author
Forward
0 new messages