From: Matt J on 27 Mar 2010 20:38 "Roger Stafford" <ellieandrogerxyzzy(a)mindspring.com.invalid> wrote in message <hom5qu$r3l$1(a)fred.mathworks.com>... > Actually [0,0;0,0] is the correct answer! The matrix product of that matrix by itself is all zeros. > Yes, however, that is not the output that is obtained...
From: Don Robison on 27 Mar 2010 18:49
I found something that kinda works, if I change the situation a bit. I just create an m-file called x, and return the matrix from the function x. This gets around the problem of the internal subs function being unable to substitute a matrix in place of a symbolic variable. Of course no symbolic operations can be preformed on the expression anymore, because x is a function now instead of a symbolic variable. |