Why the function "dare" is not working?
6 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Walter Roberson
2013-10-30
Do you have the control systems toolbox installed and licensed? What does
which -all dare
show ?
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Computations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!