FUNCTION REFERENCE

fnplt

Plot a function.

Plot a function.

Syntax

fnplt(f)

Syntax

fnplt(f, symbol, interval, linewidth)

Syntax

points = fnplt(f)

Syntax

[x, y] = fnplt(f)

Plots f over its basic interval (or interval [a b]) at 101 equally spaced points plus the breaks; a two-component function is plotted as a curve. With one output the points are returned as rows [x; y] instead; with two outputs x and y separately.

Example

pts = fnplt(csapi(0:3, [0 1 0 1])); size(pts, 1)   % 2

Differences from MATLAB: the 'jumps' option is accepted and ignored.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.