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

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

Adding files for WARPLab release 05

File size: 276 bytes
Line 
1function dottedIPout = warplab_int2IP(intIn)
2
3addrChars(4) = mod(intIn, 2^8);
4addrChars(3) = mod(bitshift(intIn, -8), 2^8);
5addrChars(2) = mod(bitshift(intIn, -16), 2^8);
6addrChars(1) = mod(bitshift(intIn, -24), 2^8);
7
8dottedIPout = sprintf('%d.%d.%d.%d', addrChars);
Note: See TracBrowser for help on using the repository browser.