find_index()
Finds the closest index for a given search value. Use with all simulation data
Syntax
index = find_index(data_sweep, search_value)
Arguments
| Name | Description | Range | Type | Required |
|---|---|---|---|---|
| data_sweep | data to search | (-∞, ∞) | integer, real, complex, string | yes |
| search_value | value to search | (-∞, ∞) | integer, real, complex, string | yes |
Examples
Given S-parameter data swept as a function of frequency, find the value of S11 at 1 GHz:
index = find_index(freq, 1GHz)
a = S11[index]
Defined in
Built in
See Also
Notes/Equations
To facilitate searching, the find_index function finds the index value in a sweep that is closest to the search value. Data of type int or real must be monotonic. find_index also performs an exhaustive search of complex and string data types.
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()