Signal_Final_TikeaTE/plotRawSignal.m

32 lines
544 B
Matlab
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function plotRawSignal(X,Fs)
%{
function plotRawSignal(X)
Ex: plotRawSignal(X)
Task:
Plot the raw signal in the time domain for initial visualization.
Inputs:
-X: 1D array of signal values (amplitude vs. time)
-Fs: sampling frequency
Outputs:
- (none) just displays the figure
Author: Tikea TE
Date: 16/04/2025
%}
% ========= Time vector =========
t = (1/Fs)*(0:length(X)-1);
% ========= Plot raw signal =========
figure;
plot(t, X, 'b');
xlabel('Time (s)');
ylabel('Amplitude (a.u)');
title('Raw Signal');
grid on;
end