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 commentaires

Bob Thompson
Bob Thompson le 25 Sep 2019
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 le 25 Sep 2019
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 le 25 Sep 2019
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 le 25 Sep 2019
Modifié(e) : John D'Errico le 25 Sep 2019
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 le 26 Sep 2019
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 le 26 Sep 2019
Modifié(e) : Nikolaos Zafirakis le 26 Sep 2019
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.

Connectez-vous pour commenter.

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by