NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/DPWavesProc/trunk/DPWavesProc/diwasp_1_1GD/compangle.m

Revision 225 (checked in by gdusek, 15 years ago)

Re-organized directory structure and cleaned up some code.

Line 
1 %function to change from axis angles to compass bearings
2
3 function angle=compangle(angle,xaxisdir)
4 angle=xaxisdir*ones(size(angle))-angle;
5 angle=angle+360*(angle<0);
6 angle=angle-360*(angle>360);
Note: See TracBrowser for help on using the browser.