Mercurial > octave
comparison scripts/plot/draw/fplot.m @ 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 | 9fc020886ae9 |
children | 5b7643257978 |
comparison
equal
deleted
inserted
replaced
20204:935832827f47 | 20205:59911f536b07 |
---|---|
58 ## fplot (@@cos, [0, 2*pi]) | 58 ## fplot (@@cos, [0, 2*pi]) |
59 ## fplot ("[cos(x), sin(x)]", [0, 2*pi]) | 59 ## fplot ("[cos(x), sin(x)]", [0, 2*pi]) |
60 ## @end group | 60 ## @end group |
61 ## @end example | 61 ## @end example |
62 ## | 62 ## |
63 ## Note: @code{fplot} works best with continuous functions. Functions with | 63 ## Programming Notes: |
64 ## | |
65 ## @code{fplot} works best with continuous functions. Functions with | |
64 ## discontinuities are unlikely to plot well. This restriction may be removed | 66 ## discontinuities are unlikely to plot well. This restriction may be removed |
65 ## in the future. | 67 ## in the future. |
66 ## @seealso{ezplot, plot} | 68 ## |
69 ## @code{fplot} requires that the function accept and return a vector argument. | |
70 ## Consider this when writing user-defined functions and use @code{.*}, | |
71 ## @code{./}, etc. See the function @code{vectorize} for potentially | |
72 ## converting inline or anonymous functions to vectorized versions. | |
73 ## | |
74 ## @seealso{ezplot, plot, vectorize} | |
67 ## @end deftypefn | 75 ## @end deftypefn |
68 | 76 |
69 ## Author: Paul Kienzle <pkienzle@users.sf.net> | 77 ## Author: Paul Kienzle <pkienzle@users.sf.net> |
70 | 78 |
71 function [X, Y] = fplot (varargin) | 79 function [X, Y] = fplot (varargin) |