interpolation of values gives Inf

4 views (last 30 days)
Freya
Freya on 5 Oct 2023
Commented: Torsten on 8 Oct 2023
Hi! I have this structure and would like to interpolate the values and create a matrix to then average the values. However, what I get is 'Inf' for basically all of them. I know the values are very low, but should still be able to get something, right?
I am very new in the coding world, the line I am using to create this matrix was written by another person. It is part of a for loop, but I hope it is still clear.
InterpCorrMatrix(:,file)=InterpCorr.(TitleStr)/InterpCorr.(TitleStr)(1);
Thanks for any help!

Accepted Answer

Torsten
Torsten on 5 Oct 2023
Edited: Torsten on 5 Oct 2023
InterpCorr.(TitleStr)(1) is equal to 0, so you divide by 0 every time.
And my guess is that your line of code should be some kind of normalization, not interpolation.
  4 Comments
Freya
Freya on 6 Oct 2023
Makes sense, thanks!
Torsten
Torsten on 8 Oct 2023
You like norse mythology ? :-)

Sign in to comment.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!