Using lookup table with continuous signal

Hi, I’m trying to use LookUpTables with Breakpoints from 0 to 2*pi with input signals that can range from -inf to inf. Since the relationship between the input and output is continuous and repeats, I tried using the MatLab functions WrapTo2Pi() and Unwrap(). Although the LookUpTable combined with WrapTo2Pi() delivers the expected result, I have not found a way to convert the output signal from the table back into a continuous signal without jumps.
I assume that Unwarp() does not work as it only receives one Signal value at a time, and is not able to detect signal jumps because of it. Is there a similar function in Simulink that i could use instead?

댓글 수: 2

I don't understand the problem. Assume the LookUpTable is the sin() function. The output of the LookUpTable is the same whether WrapTo2Pi() is in the loop of not. What do you need at the output of Unwrap() in terms of the "phi21" input? You can calculate and output "K" if you want, where phi21=K*2*Pi+y.
The start point and the end point of the LookUpTable don't have the same "Y" value. That is the reason that the output of the LookUpTable has jumps. If you say it "delivers the expected result", then why you need to "found a way to convert the output signal from the table back into a continuous signal without jumps"?
Manuel
Manuel 2024년 5월 27일
Turns out I didn't quite understand my probelm either. ^^
However I found a solution. I just needed to get the DSP System Toolbox for the Simulink version of Unwarp and now everthing is how i needed it.
Thank you for your time anyway. :)

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

답변 (0개)

제품

릴리스

R2024a

질문:

2024년 5월 27일

댓글:

2024년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by