mixture of rem and mod
Version 1.0.0.0 (343 Bytes) by
Andr?
mod(x,180) will for any x return the same direction (right sign) but between -90 and +90
605 Downloads
Updated
28 Jan 2009
No License
For directionalities, somethimes neither rem nor mod is sufficient.
if one direction is -170 degree, this could also be +10, but rem will return -170; mod on the other hand will return 160 for -20; remod will return -20 for -20 and 10 for -170, just as with angles it should.
Cite As
Andr? (2024). mixture of rem and mod (https://www.mathworks.com/matlabcentral/fileexchange/22810-mixture-of-rem-and-mod), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Computer Vision with Simulink 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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |