source:
ResearchApps/PHY/WARPLAB/ResearchExamples/LTE_Setup/LTE_MATLAB_Reference_Files/1user_mimo/warplab_IP2int.m
Last change on this file was 1590, checked in by mduarte, 14 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.