12-09-2007 04:41 PM
12-10-2007 10:40 AM
12-10-2007 11:13 AM
12-10-2007 11:29 AM
K,
I think the problem may be in the syntax you are using. f1 and f2 are both 1x100001 matrices. When you try to multiply them together using "H=f1*f2" this is a matrix multiplication, and two 1xn matrices cannot multiplied together. If you want to do elementwise multiplication so that H will also be a 1x100001 matrix, then you can use "H=f1.*f2".
One way to verify that this gives the correct results (x and M are both the right size), you can run the script in the MathScript window before using it inside a MathScript Node.
Chris