Simulink Cross Correlator dimension mismatch?

3 visualizaciones (últimos 30 días)
Herbi
Herbi el 3 de Jul. de 2017
Respondida: Akhilesh Mishra el 10 de Jul. de 2017
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!

Respuestas (1)

Akhilesh Mishra
Akhilesh Mishra el 10 de Jul. de 2017
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.

Community Treasure Hunt

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

Start Hunting!

Translated by