Rank: 231604 based on 0 downloads (last 30 days) and 0 file submitted
photo

Jurek Dziewierz

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Jurek View all
Updated File Comments Rating
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

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);

23 Feb 2012 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman

on trying to use the sftp, i get:

sftpcl = SFTPv3Client(channel)
Java exception occurred:
java.io.IOException: Illegal sftp packet len: 757951599

at ch.ethz.ssh2.SFTPv3Client.receiveMessage(SFTPv3Client.java:245)

at ch.ethz.ssh2.SFTPv3Client.init(SFTPv3Client.java:861)

at ch.ethz.ssh2.SFTPv3Client.<init>(SFTPv3Client.java:108)

at ch.ethz.ssh2.SFTPv3Client.<init>(SFTPv3Client.java:119)

please help . . . .

12 Feb 2012 Logger A container utility class to log values of various variables and messages from MATLAB code. Author: Pavan Mallapragada

Great! does exactly what i needed (after a small modification)

Contact us