root/ResearchApps/PHY/WARPLAB/WARPLAB_SISO/M_code/warplab_IP2int.m
| Revision 697, 186 bytes (checked in by MelissaDuarte, 10 months ago) |
|---|
| 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 browser.