Spectral analysis graph plot

1 view (last 30 days)
MAX
MAX on 20 Apr 2018
How do I plot the spectral analysis graph for the signal below? The below code is in the callback of a pushbutton.
Fs=8000;
Ts=1/Fs;
t=[0:Ts:1];
F_A=440; %Frequency of note A is 440 Hz
A=2*sin(2*pi*F_A*t);
sound(A,Fs);

Answers (0)

Categories

Find more on Specifying Target for Graphics Output in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!