The files implement the list, queue, stack data structures in matlab, and the queue and stack are a litter faster than the java's alternatives.
CStack define a stack data strcuture
It likes java.util.Stack, however, it could use CStack.content() to
return all the data (in cells) of the Stack, and it is a litter faster
than java's Stack.
s = CStack(c); c is a cells, and could be omitted
resizephotos -dir max_width_and_height, will let you choose a directory,
and resize all the photos in the directory. When max_width_and_height is
omitted, it uses 1600 by default(1600px is enough for most monitors).
VLOOKUP the function as vlookup in Excel
[content, index] = vlookup(m, e, column, lookcolumn) look for 'e' in the 'lookcolumn'-th column of 'm', and return the coresponding 'column'-th element of 'm' in the same row.
The original datestr and datenum are powerful, but slow.
mdatestr, mdatenum only convert date between string with format 'yyyy-mm-dd' and series value (with Excel type).
They cost 20% time of datestr and datenum(with specific...
copytofolder backup a folder under another folder.
backup(p1, p2) backup the folder p1 under p2. It will make a directory named today's date under p2. The backup will backup all the modified and newly added files but ignored the...
There is a bug in the runstoredprocedure when query a stored procedure of Oracle database.
bug example: let c be a connection object of an Oracle database, when you query an stored procedure with a string input, like blows:
MCount counts the number of M-codes you have written.
MCount.lines(path) count the lines you have written under directory filepath.
MCount.reallines(path) count the lines you have written under directory filepath, but omits...
out = pivottable(inMatrix, pivotRow, pivotColumn, valueColumn, valueFun) group
the input matrix "inMatrix" into a pivottable similar with Excel. Anyone
who are familiar with the pivottable in Excel will not have difficulties