Quadrature encoder
Version 1.0.1 (2.56 KB) by
Yonatan katz
Function encoder - encodes the movements of quadrature encoder (HEDR-5420-ES214) and return a vector containing the direction of movements.
Function encoder - encodes the movements of quadrature encoder (HEDR-5420-ES214) and return
a vector containing the direction of movements.
Input : 2 vectors - a and b, which are the direct output of the quadrature
encoder and have the same size.
Output : Ternary vector same size as input vectors. 0 - no movement. 1-forward. -1 backward.
Cite As
Yonatan katz (2025). Quadrature encoder (https://se.mathworks.com/matlabcentral/fileexchange/73213-quadrature-encoder), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
