convert a sawtooth signal to linear signal in Simulink
4 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/968845/image.png)
4 Comments
Mathieu NOE
on 19 Apr 2022
I would make another suggestion - why not use the velocity estimation between two successive steps to make like an interpolation (at higher sampling rate vs actual steps rate)
Answers (1)
Pratyush Swain
on 2 Feb 2024
Hi teun,
i understand you want to convert your sawtooth signal into a linear signal.In process of filtering the signal, you used a transfer function but the upper values were no longer measured. One workaround for this is to use look up table to convert the sawtooth signal into a linear signal without loss of values.
Please refer to the following implementation where I have attempted to reproduce the sawtooth signal through "repeating sequence" block and "quantizer" block in simulink, further I used the "1-D look up table" block to filter the signal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1606926/image.png)
This is the saw tooth signal generated through "repeating signal" and "quantizer" blocks:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1606931/image.png)
This is the output of the filtered signal after look up table:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1606936/image.png)
For more information on "1D look up table" block, please refer to https://www.mathworks.com/help/simulink/slref/1dlookuptable.html
I have also attached the simulink model for reference.
Hope this helps.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!