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

element-by-element multiplication

0 views
Skip to first unread message

Paul

unread,
May 3, 2009, 10:04:02 AM5/3/09
to
Hi people,

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

e.g.

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

"function'' (f)

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

thnx

Matt Fig

unread,
May 3, 2009, 10:23:01 AM5/3/09
to
Take a look at the vectorize function:

help vectorize

I think it only works for inline functions.

Paul

unread,
May 3, 2009, 10:30:03 AM5/3/09
to
"Matt Fig" <spam...@yahoo.com> wrote in message <gtk9c5$94u$1...@fred.mathworks.com>...

> Take a look at the vectorize function:
>
> help vectorize
>
> I think it only works for inline functions.

Thanks for your reaction!

0 new messages