cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

spline erros and problems

jcastanheira
3-Visitor

spline erros and problems

Dear all,

I have been trying to do a cubic spline for on a mechanical spectral response. Unfortunately the spline does not work, can anyone explain to me why is this happening?

I have used it in the past many times, without any problems(different data).

Is there a easy solution for this ?

Cheers to all!

João

1 ACCEPTED SOLUTION

Accepted Solutions

Here is a quick solution.

A routine which sorts and removes lines in a matrix when the elements in the first column are duplicates.

Only the first line will survive. A more sophisticated approach maybe would average the values in the other columns rather than throwing away all but the first.

View solution in original post

4 REPLIES 4

The problem is, that you have a lot of duplicate values in your abscissa vector XE1 and thats what Mathcad's spline interpolation chokes at.

More accuracy is needed in the source data?

Here is a quick solution.

A routine which sorts and removes lines in a matrix when the elements in the first column are duplicates.

Only the first line will survive. A more sophisticated approach maybe would average the values in the other columns rather than throwing away all but the first.

Thank you all!

Werner! Thats amazing. Thanks!

Top Tags