习题
5-1
ezplot('(sin(x))^2/(1+x^2)')
axis([-4,4,0,0.5]),grid on
5-2
x=[0:10:1200];
>> a=pi/6;
>>> v=100;
>> g=9.8;
>> y=x*tan(a)-((x.^2)*g)./(2*v^2*(cos(a))^2);
>> plot(x,y,'-')
5-4
5-5
a=magic(5);
>> bar(a)
5-6
>> a=[2200 1500 600 200 300 700];
>> explode=zeros(size(a))
explode =
0 0 0 0 0 0
>> pie(a,explode)