Skip to main content
1-Visitor
March 19, 2017
Solved

spline erros and problems

  • March 19, 2017
  • 3 replies
  • 2206 views

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

Best answer by Werner_E

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.

3 replies

25-Diamond I
March 20, 2017

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.

24-Ruby III
March 20, 2017

More accuracy is needed in the source data?

Werner_E25-Diamond IAnswer
25-Diamond I
March 20, 2017

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.

1-Visitor
March 20, 2017

Thank you all!

Werner! Thats amazing. Thanks!