|
From: | Nicholas Jankowski |
Subject: | Re: Does dlyap (control package) works? |
Date: | Wed, 7 Dec 2016 21:51:34 -0500 |
I'm not sure if I'm missing something stupid.My issue is with dlyap function from "control" packagedlyap(C,D)is supposed to solveC*X*C' + D = Xbut it does not seem to work for me:p=0.3, q=1-p;C=[ q p 0 ; q 0 p ; q 0 0];D = [0 0 0; 0 0 0 ; p p p];X1=dlyap(C,D)0.034394 0.029959 0.0231440.029959 0.055090 0.0217130.023144 0.021713 0.316853C*X1*C'+D0.034394 0.029959 0.0231440.029959 0.055090 0.0217130.323144 0.321713 0.316853See the discrepancy in the last row.The correct solution seems to beA =0.50518 0.47078 0.360570.53824 0.50828 0.383280.64640 0.62326 0.54754I'm using :GNU Octave Version: 4.0.2Operating System: MINGW32_NT-6.1 Windows 7 Service Pack 1 i686package control 3.0.0
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |