Hi Selvaraj,
The error message you're encountering suggests that you're trying to use the feedback function in MATLAB with arguments that have incompatible input/output sizes. The feedback function is typically used in control systems to compute the closed-loop transfer function of a system with feedback.Common Causes and Solutions
Mismatched Dimensions:
- Ensure that the dimensions of the systems you are connecting in feedback are compatible. For example, if you're connecting two transfer functions, the number of outputs of the first system must match the number of inputs of the second system, and vice versa.
Correct Usage of feedback:
- The feedback function is used as feedback(sys1, sys2), where sys1 is the forward path transfer function and sys2 is the feedback path transfer function. Ensure these systems are defined correctly.
Check System Definitions:
- Verify that the transfer functions or state-space models are defined correctly. You can use tf for transfer functions or ss for state-space models.
Hope this helps.