MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]这图怎么画? (https://www.labfans.com/bbs/showthread.php?t=4214)

ysjxj 2008-08-25 15:46

[求助]这图怎么画?
 
这图怎么画?用MATLAB
请问两组对比的数据要画成条形,怎么画啊?
第一组数据为[0.9986 0.8569 0.6291 0.9278 0.4854 0.5146 1.0213 1.1024]
第二组数据 [0.7976 0.6877 0.5322 0.7421 0.2278 0.1983 0.6857 1.0645]
将这两组数据对比,即0.9986和0.7976对比,0.8569和0.6877对比~~~~~~~

pslpsl 2008-08-25 16:16

回复: [求助]这图怎么画?
 
2 个附件
[CODE]
x=[0.9986 0.8569 0.6291 0.9278 0.4854 0.5146 1.0213 1.1024]';
y=[0.7976 0.6877 0.5322 0.7421 0.2278 0.1983 0.6857 1.0645]';
bar3([x,y],0.3);
[/CODE]

是要这个效果么:

[IMG]http://www.labfans.com/attachment.php?attachmentid=1034&stc=1&d=1219652136[/IMG]
[URL="http://www.labfans.com/attachment.php?attachmentid=1033&stc=1&d=1219651705"][/URL]

yingmuhaha 2008-08-31 11:19

回复: [求助]这图怎么画?
 
2 个附件
用excel画图吧,很方便的,我觉得楼主可能要这样的。
[IMG]http://www.labfans.com/attachment.php?attachmentid=1042&stc=1&d=1220152543[/IMG]

ysjxj 2008-09-02 10:31

回复: [求助]这图怎么画?
 
谢谢你们咯,确实要楼3这样效果的o(∩_∩)o...

hitzhjtopku 2008-09-04 09:59

回复: [求助]这图怎么画?
 
用EXAL NB!


所有时间均为北京时间。现在的时间是 11:25

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.