Monday, May 04, 2009

Matlab: Automatic conversion to element-by-element operation.

Original post here.

Q:

Is there a function which automatically puts points in front of / , * or ^ in a formula?

e.g.
from
f = 3*sin(2*x^2)

to
f = 3.*sin(2.*x.^2)

A:

help vectorize

No comments: