Questions
Q1. Plot the equation 3x5+2x4-100x3+2x2-7x+90 where -6<x<6 with the spacing of
0.01. Label x & y axis and give the Title.
Ans.
>> x=[-6:1/100:6];
>> y = (3*x.^5)+(2*x.^4)-(100*x.^3)+(2*x.^2)-(7*x)+90;
>> plot(x,y)
>> xlabel('x-axis')
>> ylabel('y-axis')
>> title('Equation')
17
Questions
Q2. Plot the Imaginary part v/s Real Part of the function (0.2+0.8i) n where n=0 to 20.
Use the dotted line of green color to represent the curve.
Ans. >> n=[0:20];
>> y = (0.2+0.8i).^n;
>> plot(real(y),imag(y),'*g')
18