Simulink Cross Correlator dimension mismatch?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!