root/DPWavesProc/trunk/DPWavesProc/compangle.m
Revision 216 (checked in by gdusek, 15 years ago) |
---|
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.