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.

Community Treasure Hunt

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

Start Hunting!

Translated by