Download Help (Windows Only) |
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, defined and saved in a .m file, 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. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | No |
Supported on RT targets | Yes |
Suitable for bounded execution times on RT | Not characterized |
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)