Find values in a vector or function
Find values in a vector or function

Find values in a vector or function

For a function y=f(x), this script looks for all the "x" values for a desired value of "y" (y0).

Download
Download

You are now following this Submission

Cite As

Adrian Lara-Quintanilla (2026). Find values in a vector or function (https://in.mathworks.com/matlabcentral/fileexchange/31103-find-values-in-a-vector-or-function), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0

toolbox

Download
1.4.0

Yields the closest value in case that the wanted value is not in the range of the input vector

Download
1.3.0

Little optimization

Download
1.1.0

The algorithm remains being the same, but I have made some little changes.
- When the function starts, it will ask for the value that you are looking for.
- It draws a plot to help you to understand the values and positions that the function found.

Download
1.0.0

Download