×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

interp1

interp1

(OP)
Hi,
I've got a problem with the interp1 command.
I use it this way: x = interp1(t0,x0,t);
with t0 = 1345x1 matrix and x0 = 1345x28 matrix and t=3000x1, all double arrays.
There are no NaN in t0 or in x0, but in the result x there are a lot of them.
How can this happen?
Can anyone help me out?

Greets

RE: interp1

Are there elements in your vector "t" which are outside the range of those given in the vector "t0"? By default, any values which are outside the range of the given data are assigned the value "NaN". You can allow extrapolation beyond the the values in "t0" by setting an optional parameter in the "interp1" function. I think you need to pass the string 'extrap' to the function, but check the help infomation to be sure.

M

--
Dr Michael F Platten

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources