%将下面的复制到M文件中
%第一题
function aa=aa()
student.Chinese=[80 85 70 79 98 90 73 83 86 90];
student.English=[80 85 70 79 98 90 73 83 86 90];
student.Math=[80 85 70 79 98 90 73 83 86 90];
student.Physics=[80 85 70 79 98 90 73 83 86 90];
j=input('course name : ','s');
i=input('student number : ');
disp(student.(j)(i))
% 在同一张图中绘制学号—各门功课成绩分布图,并保存图形。
studentnumber=1:10;
Coursename=[student.Chinese' student.English' student.Math' student.Physics'];
figure(1)
bar(studentnumber,Coursename,'group')
end
%数据输出不会做
%你看这样行不
%要行我再试试下面的题
wanle