When K=dlqr(Ad,Bd,Q,R) is used, Ad,Bd is already discretized, why not Q,R?

2 views (last 30 days)
I wish to know dlqr() priciple,I thank write dlqr() C won code ON MCU (STM32F103CBT6).

Answers (1)

Paul
Paul on 9 Nov 2024
According to dlqr, the Q and R matrices input to the function define the discrete-time quadratic cost function sum. In that sense, they are already "discretized," aren't they?
Note: the Riccati equation shown in the Algorithms section of dlqr looks suspect.

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!