functionfindValue

Return the index of the real val in the vector x, 0 if val is not found

Information

Hypothesis and equations

findValue return the first index of a value in a vector.

Bibliography

none

Instructions for use

Example :

x={1,4,4} and val=4, then findValue(x,val) returns 2

Known limits / Use precautions

none

Validations

Validated function - Gilles Plessis 02/2011

--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Gilles PLESSIS, EDF (2011)
--------------------------------------------------------------

Inputs

TypeNameDefaultDescription
RealxInput vector
RealvalValue to seek

Outputs

TypeNameDefaultDescription
IntegerindexIndex of the value in the vector