# HG changeset patch # User Rik # Date 1432062802 25200 # Node ID 59911f536b07e28dd11ece9aa32d04b835e729f7 # Parent 935832827f47466e859e4f078a2d6cce93ce56af fplot.m: Document requirement of accepting vector inputs (bug #42050). fplot.m: Document requirement of accepting vector inputs. diff -r 935832827f47 -r 59911f536b07 scripts/plot/draw/fplot.m --- a/scripts/plot/draw/fplot.m Tue May 19 20:19:45 2015 +0200 +++ b/scripts/plot/draw/fplot.m Tue May 19 12:13:22 2015 -0700 @@ -60,10 +60,18 @@ ## @end group ## @end example ## -## Note: @code{fplot} works best with continuous functions. Functions with +## Programming Notes: +## +## @code{fplot} works best with continuous functions. Functions with ## discontinuities are unlikely to plot well. This restriction may be removed ## in the future. -## @seealso{ezplot, plot} +## +## @code{fplot} requires that the function accept and return a vector argument. +## Consider this when writing user-defined functions and use @code{.*}, +## @code{./}, etc. See the function @code{vectorize} for potentially +## converting inline or anonymous functions to vectorized versions. +## +## @seealso{ezplot, plot, vectorize} ## @end deftypefn ## Author: Paul Kienzle