root/ResearchApps/PHY/WARPLAB/WARPLab_SISO_MIMO2x2/M_Code/warplab_int2IP.m

Revision 839, 276 bytes (checked in by MelissaDuarte, 5 months ago)

WARPLab Release 02 April 09 2008. Release for 2x2 MIMO and improved SISO. Matlab code is modified to support MIMO. SISO now supports continuous transmission. There is one bitstream for MIMO and one bitstream for SISO. The xps project for MIMO and SISO is different but the M code is the same (The 'warplab_' functions are the same, the argument input to the functions is the only thing that changes from SISO to MIMO).

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