// draws a sin function

clear; //you have to clear variables before startng

x=0:0.01:8;  

// x is input variable, a row vector x(1)=0, x(2)=0.01,...x(n)=8

y=3*sin(2*x)+2*sin(3*x)+sin(5*x); // calculates sin component by component

plot(x,y);


