Hi I have Csv file for voltage and time data and I would like to compute spectrogram to to compute harmonics at different frequencies but my spectrogram looks so much noisy or
%%
folder = ‘C:UsersMinDesktopNew folder (3)’;
filename = ’27o2.csv’;
data = readtable(fullfile(folder, filename));
t = table2array(data(3:end, 1));
x = table2array(data(3:end, 2));
fs = 1 / (t(2) – t(1));
% Plot the spectrogram
figure;
spectrogram(x, 500,100,500, fs, ‘yaxis’);
% Customize the plot
xlabel(‘Time (s)’);
ylabel(‘Frequency (MHz)’);
colormap("hot")
title(‘Spectrogram’);
colorbar;%%
folder = ‘C:UsersMinDesktopNew folder (3)’;
filename = ’27o2.csv’;
data = readtable(fullfile(folder, filename));
t = table2array(data(3:end, 1));
x = table2array(data(3:end, 2));
fs = 1 / (t(2) – t(1));
% Plot the spectrogram
figure;
spectrogram(x, 500,100,500, fs, ‘yaxis’);
% Customize the plot
xlabel(‘Time (s)’);
ylabel(‘Frequency (MHz)’);
colormap("hot")
title(‘Spectrogram’);
colorbar; %%
folder = ‘C:UsersMinDesktopNew folder (3)’;
filename = ’27o2.csv’;
data = readtable(fullfile(folder, filename));
t = table2array(data(3:end, 1));
x = table2array(data(3:end, 2));
fs = 1 / (t(2) – t(1));
% Plot the spectrogram
figure;
spectrogram(x, 500,100,500, fs, ‘yaxis’);
% Customize the plot
xlabel(‘Time (s)’);
ylabel(‘Frequency (MHz)’);
colormap("hot")
title(‘Spectrogram’);
colorbar; signal processing, spectrogram MATLAB Answers — New Questions