How to apply STFT and convert it into Time frequency Image In MATLAB

4 views (last 30 days)
Hello everyone, I hope you all are doing well. I have the following signal generated from example
I want to apply STFT then convert it into Time frequency image for training Resnet50

Answers (1)

Chunru on 2 Jun 2022
load frame8PSK001
Name Size Bytes Class Attributes ans 1x41 82 char cmdout 1x33 66 char frame 1024x1 16384 double complex label 1x1 1363 categorical
% doc spectrogram for more details
spectrogram(frame, hamming(nfft), nfft/2, nfft, 'centered')
Chunru on 2 Jun 2022
I don't understand your question. For data with different modulations, you will get different images with the same spectrogram function.
Med Future
Med Future on 2 Jun 2022
@Chunru Can you modified the answer, which read all .mat files from the folder and make spectogram of the dataset and save the spectrogram in with class labels

Sign in to comment.


Find more on Time-Frequency Analysis in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!