interpolateHRTF always trows warnings or errors when using either methods

조회 수: 1 (최근 30일)
Davi Carvalho
Davi Carvalho 2020년 3월 30일
편집: Davi Carvalho 2020년 4월 9일
I am trying to interpolate positions from the ARI database to the CIPIC database, but when I use the 'bilinear' mode the functions can't find the correct B position and trows an error.
However when I try to use the 'vbap' mode I ALWAYS get "Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate." no matter the objective positions specified. What should I do? Please someone send help!

답변 (1개)

Jimmy Lapierre
Jimmy Lapierre 2020년 3월 30일
Can I ask what version of Matlab you are using?
If you can provide some sample code, it might also help. Does the help example work correctly on your machine? If so, does this also work afterwards?
interpolatedIRVBAP = interpolateHRTF(hrtfData,sourcePosition,desiredPosition,'Algorithm','VBAP');
  댓글 수: 6
Jimmy Lapierre
Jimmy Lapierre 2020년 4월 3일
편집: Jimmy Lapierre 2020년 4월 3일
Thank you for that suggestion. I looked into the method being implemented and it looks like that's where the limitation came from.
"It is assumed, without loss of generality, that the points A and B have the same elevation"
I'd hope to keep A as the closest point, but have the computation work even if B doesn't have the same elevation. Ideally we only need A, B and C to form a triangle around the destination point.
Davi Carvalho
Davi Carvalho 2020년 4월 3일
Indeed, when I read it the first time it seemed weird the implementation that point B "must" be at the same elevation as A, but that's why I suggested to change point A if it couldn't find a point B match.
when you manage to solve the functions, will I need to wait until a new matlab update to use your implementations? :/

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

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by