AnsweredAssumed Answered

vrf Value in array

Question asked by arief12 on May 2, 2005
Hallo all
Thank you all for the solution it's works.
I appreciate it very much


Regards
Arie Fainbrun
Direct:  972-(0)524523459
Office: 972-(0)88577304
Fax:    972-(0)88572658



-----Original Message-----
From: Stan Bischof (Richard S) [mailto:rsb@soco.agilent.com]
Sent: Monday, May 02, 2005 5:24 PM
To: VRF
Cc: vrf@agilent.com
Subject: RE[2]: [vrf] Value in array

Bill Ossmann <bill.ossmann@philips.com> wrote:
> In other words . . .
>
> x[minindex(abs(x-testval))]
>
> gives the element of x that is closest to testval.
>

Or if you want to interpolate you can resample using the build arbitrary
waveform then use the min index formula.
For example the below will interpolate to a couple of decimal points

array ------------------------
      |                        build arbitrary waveform  ----
      |-- formula          ---                              |
          100(totSize(a)-1))                               minX(abs(a+1)

regards

Stan


--------------------------------------------------------------------------
Stan Bischof  Agilent Technologies  707-577-3994  stan_bischof@agilent.com
--------------------------------------------------------------------------

---
You are currently subscribed to vrf as: arief12@netvision.net.il To
subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".



---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes