Solution
x=linspace(0,50,100);
p=[1 0 0 5];
y=polyval(p,x);
subplot(2,2,4); plot(x,y);
x1=linspace(0,4*pi,100);
z=cos(x1);
subplot(1,2,1); plot(x1,z,'b.');
Run it.
Output :
p=[1 0 0 5];
y=polyval(p,x);
subplot(2,2,4); plot(x,y);
x1=linspace(0,4*pi,100);
z=cos(x1);
subplot(1,2,1); plot(x1,z,'b.');
Run it.
Output :