Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Interp1 Best Method?
Replies: 5   Last Post: Apr 17, 2013 6:07 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 7,873
Registered: 6/7/07
Re: Interp1 Best Method?
Posted: Apr 17, 2013 10:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 4/17/2013 7:20 AM, XLT_Frank wrote:
> Morning. I am looking to determine if interop1 is the best method for
> the following:
>
> data1 has two columns, time1 and sensor value. the intervals are on
> demand with 4000+ rows
>
> data2 has two columns, time2 and sensor value. the intervals are at 20Hz
> with 32,000+ rows
>
> I want to take data2 and realign with data1 because I only need to know
> the sensor values in data2 when the sensor value in data1 occurs. Is
> this method also okay when dealing with floating point values for my
> time code (still deciding on format of time vs. date vs. time and date
> serial).


I'd instead use the integer sampling rate as the time instead of float
since you want an exact comparison and that's iffy w/ floating point and
then use ISMEMBER or INTERSECT.

--




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.