giutils
Object classes and functions in the giutils folder can be thought of as general purpose; they do not require any giucode to work (while the opposite is true).
You are welcome to use these functions in any context you like, but keep in mind that many of them are interdependent, i.e. will not work unless some other giutils functions are present in the path.
category | function | notes |
---|---|---|
file i/o | compfiles | checks if files are identical by content |
listfromfile | simple ascii file parser | |
openfile | opens a file and checks for errors | |
graphics | barerr | draws error bars on a bar chart |
catscat | "categorical scatterplot" groups of Y data values plotted at discrete X positions | |
chartgrid | quick layout of axes on a figure | |
coldhot | blue-to-white-to-red colormap | |
dothist | histogram based on stacks of small circles | |
edgehist | an alternative to Matlab's hist/histc; creates a single area rather than individual columns and uses sensible X bins | |
midofbars | finds the mid point of each bar in a bar chart; useful to add error bars (as in barerr) | |
pagetext | places a string of text anywhere in a figure | |
scatonbar | superimposes raw data points on a bar chart (uses catscat) | |
scatter | quick scatterplots (still under development) | |
math | nindex | Michelson normalized index |
permutarray | finds all possible permutations of a vector | |
roc | ROC curves | |
smooth | smoothing noise from a function (used to create spike density plots) | |
stderr | standard error of the mean | |
matrices | different | checks if variables are identical by content |
trimwhite | removes leading and trailing whitespace from string (superseded by strtrim in Matlab 7) | |
trimwhitecomm | as above, but also removes Matlab-style comments | |
horzarray | checks if argument is a vector and makes sure it's horizontal | |
minifield | returns the first 3 lowercase letters of a string | |
isnumscalar | true for numerical scalars | |
isnumvector | true for numerical 1-D vectors | |
isstring | true for 1-D char strings | |
NOTnummatrix | returns a string if true; useful for argument checking within functions, e.g., error (NOTstring (varargin{1}); |
|
NOTnumvector | ||
NOTscalar | ||
NOTstring | ||
misc | excelstart | opens a DDL channel with Excel |
excelpoke | uses the open channel to place a matrix into an Excel spreadsheet | |
mat2clip | copies a variable to the clipboard for easy Excel paste | |
mat2txt | writes data to a text file; unpolished... | |
str2sec | returns the number of seconds from a string in the form "mm:ss" | |
user interface | startuicounter | |
stepuicounter | ||
uicheckedmenu | true if menu item is checked | |
uimenucheck | toggle menu item check state | |
uivalue | numeric value of ui textbox content |