Rank: 826 based on 156 downloads (last 30 days) and 12 files submitted
photo

Steven Huang

E-mail
Company/University
University of California, Davis

Personal Profile:

 

Watch this Author's files

 

Files Posted by Steven Huang View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 May 2008 Quantization effect on a 2nd order DPLL design To demonstrate quantization effect on a 2nd order DPLL design Author: Steven Huang dsp, dpll, pll 13 2
08 May 2008 Integer computation extended beyond 32-bit compute integer arithmatic beyond 32-bit, Matlab's limit Author: Steven Huang integer, computation, extend, extended, 32 bit, utilities 6 0
09 Aug 2005 Get MAC and IP Address, Network IDs This c-mex function obtains the MAC and IP addresses and IDs of the computer. Author: Steven Huang mac address, ip address, network ids, networking, mac address windows m... 18 8
  • 3.16667
3.2 | 6 ratings
01 Aug 2005 Givens rotation This is the Givens rotation method in Golub's book. It differs a sign with Matlab's method Author: Steven Huang linear algebra, givens rotation, matrix, orthogonalize, mathematics 13 0
18 Jul 2005 A Vandermonde matrix inversion The M-file inverses a kind of Vandermonde matrix by using Stirling polynomial coefficients. Author: Steven Huang linear algebra, vandermonde matrix, inversion, inverse 5 2
  • 3.5
3.5 | 2 ratings
Comments and Ratings on Steven Huang's Files View all
Updated File Comment by Comments Rating
21 Apr 2013 Power iteration to find max/min eigenvalue/vector This is an c-mex function to find the max/min eigenvalue/vector. Author: Steven Huang peng kaizhi

looking at once

21 Mar 2013 MD5 in MATLAB An MD5 C-mex function for MATLAB. It takes less than 1 minute for a 700MB file size. Author: Steven Huang wendong wang

very good

03 Sep 2012 MD5 in MATLAB An MD5 C-mex function for MATLAB. It takes less than 1 minute for a 700MB file size. Author: Steven Huang Jurek Dziewierz

there is a bug in this procedure, the last byte of the binary C-string is not set to zero, causing the procedure to return random length string. On some systems it might work OK, on others it might crash.
The fix is to change few last lines to enforce zero at the last byte:

change the line:
output = mxCalloc(32, sizeof(char));

to:
output = mxCalloc(33, sizeof(char));

and then

/* call the C subroutine */
mMDFile(input_buf, output);
output[32]=(char)0; // FIX HERE
plhs[0] = mxCreateString(output);
mxFree(output);

12 Aug 2012 Power iteration to find max/min eigenvalue/vector This is an c-mex function to find the max/min eigenvalue/vector. Author: Steven Huang pong

06 Jul 2012 MD5 in MATLAB An MD5 C-mex function for MATLAB. It takes less than 1 minute for a 700MB file size. Author: Steven Huang David Smith

This produces incorrect MD5 check sums. When I create a random array and save it to a MAT file, your function gives a different checksum than the system-supplied checksum command on both Mac OS X and Ubuntu Linux (and both of them agree with each other).

Contact us