I have an inverted pendulum setup and aim to utilize two separate MATLAB script blocks—one for the plant and controller, and another for the estimator. While I've successfully implemented inverted pendulum stabilization in a single MATLAB script, I'm encountering challenges when attempting to split it into two blocks.
Specifically, I'm able to send the 'y' state values to the next block but struggle to retrieve the 'x' states in feedback to the first MATLAB script block. I would greatly appreciate any assistance with this issue.
Thank you!