source:
ResearchApps/PHY/WARPLAB/ResearchExamples/LTE_Setup/LTE_MATLAB_Reference_Files/1user_mimo/warplab_int2IP.m
Last change on this file was 1590, checked in by mduarte, 14 years ago | |
---|---|
File size: 276 bytes |
Rev | Line | |
---|---|---|
[1590] | 1 | function dottedIPout = warplab_int2IP(intIn) |
2 | ||
3 | addrChars(4) = mod(intIn, 2^8); | |
4 | addrChars(3) = mod(bitshift(intIn, -8), 2^8); | |
5 | addrChars(2) = mod(bitshift(intIn, -16), 2^8); | |
6 | addrChars(1) = mod(bitshift(intIn, -24), 2^8); | |
7 | ||
8 | dottedIPout = sprintf('%d.%d.%d.%d', addrChars); |
Note: See TracBrowser
for help on using the repository browser.