SamplesPerFrame / "length of segments can't be longer than input signal"

2 vues (au cours des 30 derniers jours)
Louise Hazelton
Louise Hazelton le 23 Juil 2021
I'm a bit stuck. I'm importing 240000000 data points into Matlab. They are complex pairs so I'm expecting to have 120000000 in total. When I run the following code, I get an error that the length of the segments can't be longer than the input signal. I expect it's obvious - what am I failing to understand? 9000 samples per frame is the biggest number I've tried that doesn't end up with zero padding at the end of the list.
reader = dsp.BinaryFileReader('filename.dat','SamplesPerFrame',9000,...
'NumChannels',1,'IsDataComplex',true);
s = struct([]);
reader.HeaderStructure = s;
data = reader();
display(data);
fs = 60e6;[S, F, T, P] = spectrogram (data, fs);

Réponses (0)

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by