Using lookup table with continuous signal

3 Ansichten (letzte 30 Tage)
Manuel
Manuel am 27 Mai 2024
Kommentiert: Manuel am 27 Mai 2024
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
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"?
Manuel
Manuel am 27 Mai 2024
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. :)

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by