No BSD License  

Highlights from
mixture of rem and mod

Be the first to rate this file! 1 Download (last 30 days) File Size: 348 Bytes File ID: #22810

mixture of rem and mod

by Andr?

 

28 Jan 2009

mod(x,180) will for any x return the same direction (right sign) but between -90 and +90

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
rem Andr? 29 Jan 2009 16:47:35
mod Andr? 29 Jan 2009 16:47:35
angle Andr? 29 Jan 2009 16:47:35
floor Andr? 29 Jan 2009 16:47:35
direction Andr? 29 Jan 2009 16:47:35
directionality Andr? 29 Jan 2009 16:47:35

Contact us at files@mathworks.com