interpolation of values gives Inf

조회 수: 5 (최근 30일)
Freya
Freya 2023년 10월 5일
댓글: Torsten 2023년 10월 8일
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!

채택된 답변

Torsten
Torsten 2023년 10월 5일
편집: Torsten 2023년 10월 5일
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
Freya
Freya 2023년 10월 6일
Makes sense, thanks!
Torsten
Torsten 2023년 10월 8일
You like norse mythology ? :-)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by