Hi! I'm trying to plot a sine wave whose frequency decreases linearly over time (amplitude stays the same). This is my code:
b = ((2*pi)/(period + 0.001));
output = a.*sin(b.*(x+c))+d;
plot(x, output, 'Linewidth', 2);
When I run the code, my plot is blank. I know Matlab doesn't require the use of a "for" loop when plotting sinusoids, however I'm unsure of how else I can modify the frequency over time if I don't use a "for" loop. Any help is much appreciated!