source:
ResearchApps/PHY/WARPLAB/WARPLab_v05_2/M_Code_Reference/warplab_IP2int.m
Last change on this file was 1311, checked in by mduarte, 15 years ago | |
---|---|
File size: 186 bytes |
Line | |
---|---|
1 | function intOut = warplab_IP2int(dottedIP) |
2 | |
3 | addrChars = sscanf(dottedIP, '%d.%d.%d.%d')'; |
4 | intOut = 2^0 * addrChars(4) + 2^8 * addrChars(3) + 2^16 * addrChars(2) + 2^24 * addrChars(1); |
Note: See TracBrowser
for help on using the repository browser.