Modulation classification dataset creation error

5 visualizaciones (últimos 30 días)
Pavlos Triantaris
Pavlos Triantaris el 27 de Ag. de 2019
Comentada: Anas Alarabi el 1 de Mzo. de 2020
Hello everybody.
I have been trying to create a signal dataset with controlled parameters for modulation classification experiments, and for that I found the code on this page easy to understand. Unfortunately, it does not work when I try it.
Up to a certain point, of course, I get no errors. But when I try to run this body of code:
channelInfo = info(channel);
frameStore = helperModClassFrameStore(...
numFramesPerModType*numModulationTypes,spf,modulationTypes);
transDelay = 50;
for modType = 1:numModulationTypes
fprintf('%s - Generating %s frames\n', ...
datestr(toc/86400,'HH:MM:SS'), modulationTypes(modType))
numSymbols = (numFramesPerModType / sps);
dataSrc = getSource(modulationTypes(modType), sps, 2*spf, fs);
modulator = getModulator(modulationTypes(modType), sps, fs);
if contains(char(modulationTypes(modType)), {'B-FM','DSB-AM','SSB-AM'})
% Analog modulation types use a center frequency of 100 MHz
channel.CenterFrequency = 100e6;
else
% Digital modulation types use a center frequency of 900 MHz
channel.CenterFrequency = 900e6;
end
for p=1:numFramesPerModType
% Generate random data
x = dataSrc();
% Modulate
y = modulator(x);
% Pass through independent channels
rxSamples = channel(y);
% Remove transients from the beginning, trim to size, and normalize
frame = helperModClassFrameGenerator(rxSamples, spf, spf, transDelay, sps);
% Add to frame store
add(frameStore, frame, modulationTypes(modType));
end
end
I get the following message:
Let it be noted that I have installed all three necessary toolboxes, and Simulink is running beforehand. I also tried converting the "classes" variable to string instead of categorical, but that did not solve the problem.
Any help will be appreciated. Thank you.

Respuestas (1)

Chidvi Modala
Chidvi Modala el 30 de Ag. de 2019
  1 comentario
Anas Alarabi
Anas Alarabi el 1 de Mzo. de 2020
In the same body of code viewed here I've an error in helperModClassFrameStore function
"Invalid default value for property 'OutputFormat' in class
'helperModClassFrameStore':
Unable to resolve the name FrameStoreOutputFormat.IQAsRows."

Iniciar sesión para comentar.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by