jarima 0 Posted November 12, 2004 Report Share Posted November 12, 2004 I have an two arrays: For instance one with values for frequency the other with voltages, I want to compare a certain frequency and its voltage to another frequency and its voltage? Say 500 Hz has 20v and 1000Hz has 10v, I want to compare those two points and came up with a string that will display something like good data or bad data ?How can I do that, been searching for a week cant find it. Another is how can I interpolate for example to find the frequency which has a value of 7v and then display it. Please Help Quote Link to post

hfettig 1 Posted November 15, 2004 Report Share Posted November 15, 2004 As to the first part of your question, I am not sure I understand exactly what you want to do. But I can help with the interpolation part: There are two ways to do this. You can doing by using your two arrays. Then you have to interpolate twice. First you find the fractional index that 7V would have in your voltage array. Then you find the value that corresponds to this fractional index in the frequency array. If you combine the two arrays to an array of points, then you can simply use one interpolation function. Everything else is done for you. Make sure two wire the Voltage array to the first input. In both cases the voltage array has to be in ascending order and the values in the frequency array have to be at the same positions as the corresponding voltage values. Quote Link to post

## Recommended Posts

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.