Мне нужно исправить этот код, он говорит: «Измерение 1 фиксируется слева, но изменяется справа ([84480 x 1]…»
Я пытаюсь использовать преобразователь с фиксированной точкой для преобразования этого кода. Однако у меня эта ошибка размерности 1 исправлена слева ... для rxWaveform
rxWaveform = rxWaveform(1+offset:end,:);
function rxWaveform = new_synch(rxWaveform,pssRef)
%PSSIndices = ltePSSIndices(enb); % getting PSS indexes
%pssGrid = lteDLResourceGrid(enb); % generate empty sub frame for PSS symbols
%pssGrid(PSSIndices) = ltePSS(enb); % map PSS symbols into the subframe
%pssRef = lteOFDMModulate(enb,pssGrid); % generate PSS reference signal via LTE OFDM
% getting the lenghts of the received waveform and PSS reference signal
rxSize = size(rxWaveform,1);
pssSize = size(pssRef,1);
% performing correlation between received waveform and pss symbols
pssCorr = xcorr(rxWaveform,pssRef);
% segmenting resultant vector to identify the first local maximum
pssCorr = pssCorr(rxSize - pssSize:rxSize + pssSize,:);
% extract the index of first local maximum, M is not useful here, just for
% the output result
[M,index] = max((abs(pssCorr)));
%calculating offset using local maximum
offset = index - pssSize -1; % subtracted from 1 due to shift in the
rxWaveform = rxWaveform(1+offset:end,:);
end