Rank: 920 based on 142 downloads (last 30 days) and 9 files submitted
photo

Zhiqiang Zhang

E-mail
Company/University
CITIC Security Co., Ltd.

Personal Profile:

Ph.D in Mathematics.

homepage is http://zhiqiang.org/
Blog in Chinese: http://zhiqiang.org/blog/


 

Watch this Author's files

 

Files Posted by Zhiqiang Zhang View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 May 2011 backup and sync backupfolder - backup a folder, syncfolder - sync folders, revertbackup - revert previous backups Author: Zhiqiang Zhang backup, sync, utility 9 3
  • 5.0
5.0 | 3 ratings
09 May 2011 a bug-fixed runstoredprocedure.m There is a bug in the official runstoredprocedure. This file fixed the bug. Author: Zhiqiang Zhang database 4 0
05 May 2011 list, queue, stack implement the list, queue, stack data structures in matlab Author: Zhiqiang Zhang queue, stack, data strcuture, oop, adt 51 9
  • 4.8
4.8 | 5 ratings
24 Mar 2011 How many M-codes have you written? This script let you count the number of M-codes you have written under specific directory. Author: Zhiqiang Zhang count 8 0
27 Feb 2011 pivottable PIVOTTABLE Groups a matrix into a pivot table, is flexible as in Excel Author: Zhiqiang Zhang pivottable, excel, data exploration 29 1
  • 4.5
4.5 | 5 ratings
Comments and Ratings by Zhiqiang Zhang View all
Updated File Comments Rating
05 May 2011 list, queue, stack implement the list, queue, stack data structures in matlab Author: Zhiqiang Zhang

I makes two updates (waiting for moderation)

1. add an method "isempty" to determine if the stack and queue is emtpy, and the method "emtpy" is to remove the content of the stack and queue. (thanks to Vojtech)
2. throw a warning when top an empty stack, and back, front an empty queue. throw an error when pop an empty stack and queue. (Thanks to Derek)

04 Dec 2010 Binary Search Binary search of values in a data vector. Author: Aroh Barjatya

The function used fliplr and flipud who are terrible for the usage: we are using binary search to get log(n)-time efficiency, but both of the functions are linear.

If your algorithm is linear, we prefer ind = find(x==var) rather than your algorithm.

06 Oct 2010 extract substring substr extracts a substring of length len from the string str, starting at the specified offset. Author: Phillip M. Feldman

simple but nice code

02 Oct 2010 String comparison Compares 2 strings. Output is identical to that of C string library. Author: ChinSoon Lim

02 Oct 2010 explode_implode Two functions: split string into pieces, join strings with delimiter in between. Author: Sara Silva

SPLIT = strread(STRING,'%s','delimiter','DELIMITER') ;
doesn't work well. It trum off the space at the beginning of the pieces.

Comments and Ratings on Zhiqiang Zhang's Files View all
Updated File Comment by Comments Rating
04 Dec 2014 list, queue, stack implement the list, queue, stack data structures in matlab Author: Zhiqiang Zhang mayank chakarwarti

can any one tell me pls how to print all elements in stack and store it in an array??

05 Nov 2014 backup and sync backupfolder - backup a folder, syncfolder - sync folders, revertbackup - revert previous backups Author: Zhiqiang Zhang Christian

It seems like exactly what I need, but I get the following error:

Index exceeds matrix dimensions.

Error in syncfolder>sortstruct (line 181)
fieldEntry = aStruct(1).(fieldName);

Error in syncfolder (line 50)
files1 = sortstruct(dir(p1), 'name');

I have strcmpc installed. Matlab is R2013a

Any ideas? Thank you!

25 Jun 2014 pivottable PIVOTTABLE Groups a matrix into a pivot table, is flexible as in Excel Author: Zhiqiang Zhang Meng

20 Feb 2014 list, queue, stack implement the list, queue, stack data structures in matlab Author: Zhiqiang Zhang The Lion

I found a bug in Queue.m file
Line 96

if obj.rear >= obj.front

is a mistake.
obj.front is the value of the first element, not the position of the firs element.

correct it like this:
if obj.rear >= obj.beg
obj.buffer(1:sz) = obj.buffer(obj.beg:obj.rear-1);
else
obj.buffer(1:sz) = obj.buffer([obj.beg:obj.capacity 1:obj.rear-1]);
end

24 Nov 2013 vlookup - similar to MS Excel function A matrix version of VLOOKUP similar to MS Excel function. Author: Zhiqiang Zhang Sergiy

Contact us