You can use the following command to solve your equation:
[X,K,L] = idare(A,B,W,U,[],[]);
The equation provided in the documentation is:

The variables can be mapped as follows:

For further details, refer to the following link:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!