a)
t=0:.001:1;
f=f(0)+k*t; // f(0)=initial frequency and K some arbitrary constant
y=sin(2*pi*f.*t);
plot(t,y)
b)
t=0:.00001:1;
A=k*sin(2*pi*t);
y=A.*sin(2*pi*100*t);
plot(t,y)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!