Member of the zerofinder class.
y = fsolve(fun, y0)
Uses a nonlinear equation solver to determine the y-values in a nonlinear system of equations.
| Name | Description |
| fun | Specifies a function that describes the system of nonlinear equations. The function must have the following form: function fx = fun(x). fun is a string. |
| y0 | Specifies the y-values of the starting value. y0 is a real, double-precision vector. To generate a valid approximation, y0 must be reasonably close to a solution. |
| Name | Description |
| y | Returns the y-values LabVIEW approximates. y is a real, double-precision vector of the same size as y0. |
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 nonlin.m in a directory in the MathScript search path:
function fx = nonlin(x)Then call the following command in the LabVIEW MathScript Window:
y = fsolve('nonlin', [3, 3])