Owning Class: zerofinder
Requires: MathScript RT Module
y = fsolve_zero(fun, y0)
Legacy Name: fzero
Uses a nonlinear equation solver to determine the y-value in a nonlinear equation.
| Name | Description |
|---|---|
| fun | Specifies the name of the function that describes the nonlinear equation. The function must have the following form: function fx = fun(x). fun is a string. |
| y0 | Specifies the y-value of the starting value. y0 is a real, double-precision scalar. To generate a valid approximation, y0 must be reasonably close to a solution. |
| Name | Description |
|---|---|
| y | Returns the y-value LabVIEW approximates. y is a real, double-precision scalar. |
This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.
Save the following script as nonlinzero.m in a directory in the MathScript search path:
function fx = nonlinzero(x)Then call the following command in the LabVIEW MathScript Window:
y = fsolve_zero('nonlinzero', 1)