home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / mathstud / log2.m < prev    next >
Encoding:
Text File  |  1995-05-19  |  98 b   |  6 lines

  1. function [y] = log2(x)
  2. %y=log2(x)
  3. %compute the logarithm, base 2, of x
  4.  
  5. y = log(x) / log(2);
  6.