Simulink Cross Correlator dimension mismatch?
2 views (last 30 days)
Show older comments
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!
0 Comments
Answers (1)
Akhilesh Mishra
on 10 Jul 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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!