用matlab画直方图!x=【1.471.621.531.571.631.471.631.51.531.61.561.471.61.51.631.621.531.51.591.471.471.691.51.471.561.531.561.471.51.51.481.531.61.471.531.541.561.51.531.471.561.531.541.531.591.561.571.531.51.561.561.571.591.541.561.51.51.561.58
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/02 22:44:41
用matlab画直方图!x=【1.471.621.531.571.631.471.631.51.531.61.561.471.61.51.631.621.531.51.591.471.471.691.51.471.561.531.561.471.51.51.481.531.61.471.531.541.561.51.531.471.561.531.541.531.591.561.571.531.51.561.561.571.591.541.561.51.51.561.58
用matlab画直方图!
x=【1.47
1.62
1.53
1.57
1.63
1.47
1.63
1.5
1.53
1.6
1.56
1.47
1.6
1.5
1.63
1.62
1.53
1.5
1.59
1.47
1.47
1.69
1.5
1.47
1.56
1.53
1.56
1.47
1.5
1.5
1.48
1.53
1.6
1.47
1.53
1.54
1.56
1.5
1.53
1.47
1.56
1.53
1.54
1.53
1.59
1.56
1.57
1.53
1.5
1.56
1.56
1.57
1.59
1.54
1.56
1.5
1.5
1.56
1.58
1.56
1.54
1.53
1.5
1.53
1.47
1.57
1.56
1.53
1.56
1.57
1.54
1.54
1.5
1.56
1.53
1.6
1.53
1.59
1.56
1.48
1.47
1.53
1.53
1.54
1.53
1.53
1.56
1.55
1.5
1.59
1.53
1.54
1.48
1.54
1.53
1.54
1.47
1.53
1.58
1.47
1.59
1.56
1.63
1.57
1.5
1.56
1.53
1.5
1.52
1.55
1.54
1.6
1.53
1.53
1.54
1.54
1.47
1.52
1.53
1.57
1.49
1.56
1.53
1.53
1.5
1.51
1.57
1.54
1.54
1.54
1.57
1.58
1.56
1.57
1.5
1.53
1.51
1.58
1.54
1.56
1.53
1.48
1.59
1.51
1.57
1.53
1.51
1.5
1.54
1.5
1.54
1.56
1.53
1.63
1.53
1.57
1.5
1.57
1.56
1.56
1.6
1.5
1.5
1.51
1.6
1.5
1.51
1.53
1.54
1.5
1.53
1.52
1.6
1.53
1.56
1.5
1.56
1.57
1.56
1.53
1.56
1.57
1.53
1.46
1.53
1.47
1.51
1.53
1.6
1.56
1.56
1.6
1.54
1.53
1.53
1.5
1.53
1.56
1.62
1.53
】
这里有200个测量值,取最大和最小的之差,平均分成9个区间,取每个区间内测量值的个数作为频数,频数除以总数也就是200作为相对频数,相对频数为纵坐标,数据值为横坐标,画直方图,用matlab!
请帮我编写程序,
用matlab画直方图!x=【1.471.621.531.571.631.471.631.51.531.61.561.471.61.51.631.621.531.51.591.471.471.691.51.471.561.531.561.471.51.51.481.531.61.471.531.541.561.51.531.471.561.531.541.531.591.561.571.531.51.561.561.571.591.541.561.51.51.561.58
[a,b]=hist(x,9);
a=a/length(x);
bar(b,a);