Accessing simParameters.Carrier inside MATLAB function block in Simulink
I am trying to implement PDSCH transceiver in simulink using simulink blocks and matlab functions.
I have already implemented this in Matlab code now want to implement in simulink, so now while doing this i am facing some problems using simParameters.Carrier in simulink matlab fucntion.
I have used variable carrier = simParameters.Carrier in matlab code. Now i want to access this as when i want to do OFDM Modulation i am using matlab function and while in this function i am writing
function txWaveform = OFDMModulator(pdschGrid, carrier)
txWaveform = nrOFDMModulate(carrier, pdschGrid);
end
But now i dont know how to access this carrier (in which complete configuration is present) in Matlab function.
Any suggestions on how I can get the data stored in this struct variable accessible inside the Simulink MATLAB function block? Thank you.I am trying to implement PDSCH transceiver in simulink using simulink blocks and matlab functions.
I have already implemented this in Matlab code now want to implement in simulink, so now while doing this i am facing some problems using simParameters.Carrier in simulink matlab fucntion.
I have used variable carrier = simParameters.Carrier in matlab code. Now i want to access this as when i want to do OFDM Modulation i am using matlab function and while in this function i am writing
function txWaveform = OFDMModulator(pdschGrid, carrier)
txWaveform = nrOFDMModulate(carrier, pdschGrid);
end
But now i dont know how to access this carrier (in which complete configuration is present) in Matlab function.
Any suggestions on how I can get the data stored in this struct variable accessible inside the Simulink MATLAB function block? Thank you. I am trying to implement PDSCH transceiver in simulink using simulink blocks and matlab functions.
I have already implemented this in Matlab code now want to implement in simulink, so now while doing this i am facing some problems using simParameters.Carrier in simulink matlab fucntion.
I have used variable carrier = simParameters.Carrier in matlab code. Now i want to access this as when i want to do OFDM Modulation i am using matlab function and while in this function i am writing
function txWaveform = OFDMModulator(pdschGrid, carrier)
txWaveform = nrOFDMModulate(carrier, pdschGrid);
end
But now i dont know how to access this carrier (in which complete configuration is present) in Matlab function.
Any suggestions on how I can get the data stored in this struct variable accessible inside the Simulink MATLAB function block? Thank you. #ofdm, #simulink, #modelworkspace, #workspace, #ofdmmodulation, data import MATLAB Answers — New Questions