updated main to plot signals

This commit is contained in:
Nicolas TRAGLIA 2023-04-20 11:52:08 +02:00
parent f5d26c7def
commit 6df6f80d0f
1 changed files with 2 additions and 2 deletions

4
main.m
View File

@ -17,14 +17,14 @@ RoI=[30,40]; #Region of interest, in Hz.
FFTSIGNAL=fft(SignalRaw,N);
power = abs(FFTSIGNAL).^2/N;
if false #Plot raw signal
if true #Plot raw signal
plot(1:length(SignalRaw), SignalRaw);
title('Raw unknown signal');
xlabel('Time (s)');
ylabel('Amplitude (a.u.)');
endif
if false #Plot raw signal in frequency domain
if true #Plot raw signal in frequency domain
plot(1:length(power),power);
title('Raw unknown signal');
xlabel('Frequency (Hz)');