changeset 20205:59911f536b07 stable

fplot.m: Document requirement of accepting vector inputs (bug #42050). fplot.m: Document requirement of accepting vector inputs.
author Rik <rik@octave.org>
date Tue, 19 May 2015 12:13:22 -0700
parents 935832827f47
children f638a61af5a8
files scripts/plot/draw/fplot.m
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <pkienzle@users.sf.net>