intlinprogoutput functions and plot functions differ from those in other solvers. Seeintlinprog Output Function and Plot Function Syntax. To set up an output function or plot function, do the following: Write the function as a function file or local function. Useoptimoptionsto set the value ofOu...
Plot implicit function collapse all in pageSyntax fimplicit(f) fimplicit(f,interval) fimplicit(ax,___) fimplicit(___,LineSpec) fimplicit(___,Name,Value) fp = fimplicit(___)Description fimplicit(f) plots the implicit function defined by f(x,y) = 0 over the default interval [-5 5] for...
Example: Use Custom Plot Function You can write a custom plot function using the same syntax as an output function. For more information on this structure, see Optimization Solver Output Functions. Create a 2-D plot function that shows the iterative points labeled with the iteration number. For...
One or more FunctionLine or ParameterizedFunctionLine objects, returned as a scalar or a vector. If you use the fplot(f) syntax or a variation of this syntax, then fplot returns FunctionLine objects. If you use the fplot(funx,funy) syntax or a variation of this syntax, then fplot retu...
Syntax fnplt(f) fnplt(f,symbol,interv,linewidth,jumps) points = fnplt(f,...) [points, t] = fnplt(f,...) Description fnplt(f) plots the function in f on its basic interval. If f is univariate, then: If f is scalar-valued, fnplt plots the graph of f. ...
Plot function collapse all in page Syntax fnplt(f) fnplt(f,symbol,interv,linewidth,jumps) points = fnplt(f,...) [points, t] = fnplt(f,...) Description fnplt(f)plots the function infon its basic interval. Iffis univariate, then: ...
Syntax area(X,Y) area(Y) area(___,basevalue) area(___,Name,Value) area(ax,___) a = area(___)Description area(X,Y) plots the values in Y against the x-coordinates X. The function then fills the areas between the curves based on the shape of Y: If Y is a vector, the ...
The option ax can precede any of the input argument combinations in the previous syntaxes. example scatter(___,Name,Value) modifies the scatter plot using one or more name-value arguments to set properties. For example: scatter(x,y,"LineWidth",2) creates a scatter plot with 2-point ...
as a one- or two-element vector with the formstepor[step maxvert], wherestepis the step size in data units for interpolating the vector data andmaxvertis the maximum number of vertices in a streamline. Use this argument with any of the input argument combinations from the previous syntaxes...
The algorithm is in some computationally expensive part of the iteration. In this state, the output function can interrupt the current iteration of the optimization. At this time, the values ofxandoptimValuesare the same as at the last call to the output function in whichstate=='iter'. ...