Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
RAD2DMS0.M
Package: easy.zip [view]
Upload User: sfyaiting
Upload Date: 2009-10-25
Package Size: 320k
Code Size: 1k
Category:
GPS develop
Development Platform:
Matlab
- function result = rad2dms0(arg)
- %RAD2DMS Conversion of radians to degrees, minutes, and seconds
- %Kai Borre
- %Copyright (c) by Kai Borre
- %$Revision 1.1 $ $Date1999/01/12 $
- neg_arg = 'FALSE';
- if arg < 0
- neg_arg = 'TRUE ';
- arg = -arg;
- end
- arg = arg*180/pi;
- result = zeros(1,3);
- result(1) = fix(arg);
- if result(1) == 0
- result(2) = fix(arg*60);
- else
- result(2) = fix(rem(arg,result(1))*60);
- end
- result(3) = (arg-result(1)-result(2)/60)*3600;
- if neg_arg == 'TRUE '
- result(1) = -result(1);
- end
- %fprintf(' %3.0f %2.0f %8.6fn',result(1),result(2),result(3))
- %%%%%%%%%%%%%%%%% end rad2dms0.m %%%%%%%%%%%%%%%%%%%%%%%%%%%