vectorize
- :
v =vectorize(expr)¶ - :
v =vectorize(fh)¶ Make an expression operate elementwise.
Every ‘*’, ‘/’, ‘\’ or ‘^’ operator of the character string expr that is not already an elementwise operator gets a dot in front of it, so that
vectorize ("x*y/z^2")is"x.*y./z.^2".When given an anonymous function handle fh, the body of the function is converted in the same way and a new handle with the same parameter list is returned. A handle to a named function is returned unchanged.
This function is obsolete.