Why the function "dare" is not working?

Hi everyone!
I am having some issues with the function dare. here are the codes:
C = [1+rhox -rhox 0 ; 1 0 0 ; 0 0 rhoz];
D = [1 0 1 ; 1 0 0];
Sigma_1 = zeros(3,3);
Sigma_1(1,1) = sigma_eps^2;
Sigma_1(3,3) = sigma_eta^2;
Sigma_2 = zeros(2,2);
Sigma_2(2,2) = sigma_v^2;
P = dare(C',D',Sigma_1,Sigma_2);
As you can see, with the first lines I am defining the matrices, while last code is supposed to solve the Riccati equation in order to obtain P. The problem is that it shows the message "Undefined function 'dare' for input arguments of type 'double'", and it is asked me if I meant "date". Is it possible that my version (R2013b) doesn't include this function?
Many thanks in advance!
Ale
ps. I am sorry for the "if true" at the beginning, it has been inserted when I tried to write down the lines as code. If I try to delete it, the following lines stop being written in this manner.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 30 Okt. 2013

0 Stimmen

Do you have the control systems toolbox installed and licensed? What does
which -all dare
show ?

Weitere Antworten (1)

Alessandro
Alessandro am 30 Okt. 2013

0 Stimmen

'dare' not found.
You are right... I see now that the control systems toolbox is not inserted in the Student Version, the one I am using. I suppose the only way to have this toolbox is to obtain a different license, correct?
Anyway, thank you for you kindness!

Community Treasure Hunt

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

Start Hunting!

Translated by