Hello Suneel,
The errors you are encountering in your Simulink model are related to matrix dimensions and input requirements for the LMS (Least Mean Squares) filter block. Let us address these issues one by one:
Error 1: Output Port Dimension Error
- Check Submatrix Dimensions: Ensure that the output of the block labeled Submatrix1 is producing the expected dimensions. If it's supposed to be a vector, make sure you are extracting the correct row or column.
- Reshape or Select: If you need a single vector (e.g., a [64x1] or [1x64] vector), use blocks like the Reshape, Selector, or Mux block to adjust the dimensions appropriately.
Error 2: LMS Filter Input Error
- Vector Input Requirement: The LMS filter block typically requires a vector input rather than a matrix. Ensure that the input to the LMS filter is a vector.
- Use Selector or Reshape: If your input is a matrix, use a Selector block to extract the necessary row or column, or a Reshape block to convert it into a vector form.
General Steps to Fix the Model:
- Identify the Source of the Matrix: Look at the block Submatrix1 and determine why it is outputting a [64x2] matrix. Adjust the logic to output the correct dimensions.
- Adjust Input to LMS Filter: Ensure the input to the LMS filter is a single vector. If you have multiple channels, you might need separate LMS filter blocks or use a multiplexing strategy.
Simulink Blocks:
- Selector Block: Use this to pick specific rows or columns from a matrix.
- Reshape Block: Use this to change the dimensions of your data.
- Demux Block: If you have multiple signals in a matrix, use a Demux block to separate them.
Check Block Parameters: Double-check the parameters of the LMS filter block to ensure they match the expected input dimensions.
I hope this helps!