%指定excel的页面Sheet2
Row1={'e','e2','Ax','Ay'};
xlswrite('xlsoutput.xls', Row1, 'Sheet2','A1');
l1=10;
l2=4;
for i = 1:10
e=120+i*2;
e2=30+i*4;
Ax = l1*cosd(e)-l2*cosd(e2);
Ay = l1*sind(e)+l2*sind(e2);
M(i,

=[e e2 Ax Ay];
end;
xlswrite('xlsoutput.xls', M, 'Sheet2','A2');