热线电话:13121318867

登录
2019-02-15 阅读量: 4390
如何通过matlab hist函数绘制下图?


如何通过matlab hist函数绘制下图?
第1组:[10,10,20]; 和第2组:[15,10,8]。每组包含三个算法的运行时间。

在此输入图像描述

0.0000
6
关注作者
收藏
评论(1)

发表评论
啊啊啊啊啊吖
2019-02-15

尝试寻找bar功能

示例代码段

g1 = [10,10,20];

g2 = [15,10,8];

algStr = sprintfc('Algorithm %d',1:3);

bar(categorical({'Group1','Group2'}),[g1;g2])

legend(algStr)

0.0000 0 0 回复