root/ResearchApps/PHY/WARPLAB/WARPLAB_SISO/M_code/warplab_IP2int.m

Revision 697, 186 bytes (checked in by MelissaDuarte, 10 months ago)

Adding warplab m files

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 browser.