Using lookup table with continuous signal
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Fangjun Jiang
am 27 Mai 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"?
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!