0001 function g=mtimes(g1,g2)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 if isa(g1,'Gaussian')
0018 if isa(g2,'Gaussian')
0019 g=Product(g1,g2);
0020 else
0021 if isa(g2,'double')
0022 g=Scale(g1,g2);
0023 else
0024 error('Invalid parameter type in Gaussian mtimes')
0025 end
0026 end
0027 else
0028 g=mtimes(g2,g1);
0029 end