32 lines
544 B
Matlab
32 lines
544 B
Matlab
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
|