|
From: | Doug Stewart |
Subject: | Re: control package, odd behavior multiplying tf's |
Date: | Fri, 12 Jun 2015 16:32:12 -0400 |
nickj(using 4.0.0 on windows with control-2.8.1)So, what is up with Octave's result for the 3rd case?but the result is very different>>a3*a4;a2*ans;a1*anssince matrix multiplication is associative, (and since the tfs are identical) this should also work>> a1*a2;ans*a3;ans*a4so does this, doing one multiplication at a time:>> a2 =a1; a3 = a1; a4 = a1;>> a1 = tf({[2 24],[12];[1 48 0],[2 24]},{[-1 24],[-1 24];[-4 96],[-1 24]});working with chains of some rational MIMO transfer functions. get some very different results based on order of multiplication. without knowing too much of what's going on under the hood, wonder if someone can explain if this is expected or not:sample tfs:this produces the expected series answer, nicely simplified>> a1*a2*a3*a4also happens with different, unequal tfs. is there something about having the more complex tf as the second term for the multiply?checking against ML2015. ML doesn't try to do any rational simplfication, so it's a bit of a mess with very high polynomial order doing any of the above steps. using minreal between each step keeps it on track and the answer matches the expected analytical result multiplying in any direction.
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |