Using lookup table with continuous signal
Mostrar comentarios más antiguos
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 comentarios
Fangjun Jiang
el 27 de Mayo de 2024
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
el 27 de Mayo de 2024
Respuestas (0)
Categorías
Más información sobre Lengths and Angles en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
