source: ResearchApps/PHY/WARPLAB/WARPLab_v06_1/M_Code_Reference/warplab_IP2int.m

Last change on this file was 1311, checked in by mduarte, 15 years ago

Adding files for WARPLab release 05

File size: 186 bytes
Line 
1function intOut = warplab_IP2int(dottedIP)
2
3addrChars = sscanf(dottedIP, '%d.%d.%d.%d')';
4intOut = 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.