I have 1000 measurements which have been wrapped to 30000 and unwrapped they should be 60000. In order to this I am applying the code below but some of the measurements do not unwrap correctly and drift can be seen out of the needed range.
Does anyone know how to fix my code?
A = (unwrap(B/2^15*pi)*2^15/pi)

댓글 수: 6

Bob Thompson
Bob Thompson 2019년 9월 25일
Pro tip: Titling your question with 'ASAP,' 'URGENT,' 'NOW,' or some other rapid time based response requirement is a great way to get your question ignored, or to have somebody leave you a comment about how they don't have time. Not trying to flame you, just an FYI for how the community works here.
That being said, can you give some more detail about what you mean by 'do not unwrap correctly and drift?' Wrapping and unwrapping is not my forte, and I don't know what exactly you're doing wrong just from that single code.
Nikolaos Zafirakis
Nikolaos Zafirakis 2019년 9월 25일
The data maximum is 60000 and it has been wrapped to 30000 in the sense that it creates fake measurements see figure one 18-25 that curve should be on the top; the data has been flipped to fit the 30000 margins. Now if you have a look at figure 2 the data is unwrapped until about 30 but then it drifts above the limit. Figure 3 and 4 provide the beginning and the result of all one thousand measurements. Thnks for the response I'm just in a real hurry to get this done!
Figure 1 Wrapped data
fig3.jpg
Figure 2 Unwrapped data with errors
fig4.jpg
Figure 3 wrapped data
fig1.jpg
Figure 4 Unwrapped data with errors
fig2.jpg
Bob Thompson
Bob Thompson 2019년 9월 25일
Hmmm, ok I understand more. Unfortunately, I don't know that I personally can help with that because I would end up just working through it by trial and error. If you don't get another response soon I would recommend deleting and reposting the question with your added information, and not having the 'ASAP' in the title. You might get more hits that way.
John D'Errico
John D'Errico 2019년 9월 25일
편집: John D'Errico 2019년 9월 25일
When you have the ASAP in there, all it does is tell someone that you feel your need to solve your problem is more important than the time of the person who might try to answer it, that we need to get moving and help you. And that just tells some people to not bother.
Regardless, if you feel the automatic stuff in unwrap does not do your data adequate service, then you should probably just write your own code to do so. Something that understands your specific understanding about the problem you want to solve, because it was built by you.
Generic code is rarely that smart about any specific problem.
David Goodmanson
David Goodmanson 2019년 9월 26일
Hi Nikolaos,
by 30000, i presume you mean 2^15. The first two jumps are on the order of +-2^16 = +-65536 and look like the effects of a wrap. The third jump, up around x = 30, is approximately -45000, so how do you know that it is due to a wrap?
Nikolaos Zafirakis
Nikolaos Zafirakis 2019년 9월 26일
편집: Nikolaos Zafirakis 2019년 9월 26일
Hello David,
I don't know I got given some data and were just told that it is wrapped, and I need to unwrap it. I managed to do the majority, but I get these weird outcomes as you spotted. Do you have any ideas of how to devise an algorithm to unwrap them correctly?
The output should not pass +-65536.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

태그

질문:

2019년 9월 25일

편집:

2019년 9월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by