Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Meshgrid

0 views
Skip to first unread message

Jafar Sadjadi

unread,
Feb 5, 1998, 3:00:00 AM2/5/98
to

z=(2*(X^3))-(3*(X^2))-(6*X*Y*(X - Y - 1));

specifies matrix multiplication and exponentiation rather than
element-by-element multiplication and exponentiation. To specify
element-by-element operations, as is typically done with MESHGRID, you
need to add a '.' before each multiplication or exponentiation symbol.
You could replace the above line with:

z=(2.*(X.^3))-(3.*(X.^2))-(6.*X.*Y.*(X - Y - 1));


0 new messages