(1) first
Clc, clearance; All closed
[num,txt,raw]= xls read(' cjb . xlsx ');
name=raw(2:end, 1);
number=raw(2:end,2);
math=raw(2:end,3);
English =raw(2:end, 4);
S=input ('Please enter your student number:');
n = find(cell 2 mat(number)= = s);
Fprintf ('student name %s? Math score %f? English score% f \ n', name {n}, math {n}, English {n});
(2) The second procedure
Clc, clearance;
[num,txt,raw]= xls read(' cjb . xlsx ');
name=raw(2:end, 1);
number=raw(2:end,2);
math=raw(2:end,3);
English =raw(2:end, 4);
s 1 = find(cell 2 mat(math)& lt; 60);
S2=find(cell2mat (English) & lt60);
mathnum =(number(s 1));
mathname = name(s 1);
mathsc =(math(s 1));
mathnp =[mathnum mathname mathsc];
English num =(number(S2));
English name = name(S2);
Englishsc= (English (S2)););
englishnp=[englishnum? English sc];
Disp ('information of students who failed math:')
disp(mathnp);
Disp ('information of students who failed English:')
disp(English NP);