Simulink Cross Correlator dimension mismatch?

조회 수: 3 (최근 30일)
Herbi
Herbi 2017년 7월 3일
답변: Akhilesh Mishra 2017년 7월 10일
Dear community, unfortunately i keep getting the same error when using the Cross Correlator block in simulink.
"An error occurred while running the simulation and the simulation was terminated Caused by: Error evaluating registered method 'Update' of MATLAB S-Function 'msfuncorr' in 'Rechneruebung1/Cross Correlator/msfuncorr'. The following is the MATLAB call stack (file names and line numbers) that produced this error: ['C:\Program Files\MATLAB\R2017a\toolbox\simulink\blocks\msfuncorr.m'] [206] Subscripted assignment dimension mismatch."
At the Inputs of the block there are two [512x1] Signals. Even when using the same signal at the inputs the result is the same. Can anyone specify what am i doing wrong? Regards!

답변 (1개)

Akhilesh Mishra
Akhilesh Mishra 2017년 7월 10일
The Cross-Correlator block input signals cannot be vectors as it already has a buffer operation (converting samples into vectors) incorporated into it. For computing the cross-correlation of vectors, consider using the Correlation block - https://www.mathworks.com/help/dsp/ref/correlation.html.
The output of this block can then be connected to a Spectrum Analyzer for visualization https://www.mathworks.com/help/dsp/ref/spectrumanalyzer.html.
These blocks are shipped with DSP System Toolbox.

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by