[id test1 test2] = textread('grades.txt', '%s %f %f');
id=char(id);
fprintf('Id   Test1 Test2\n');
for i=1:length(id)
    fprintf('%s  %5.2f  %5.2f\n',id(i,:),test1(i),test2(i));
end