fileparts version obsolete (error in 2015 versions of MATLAB)
If you haev a matlab command line like
[p,f,e,v] = fileparts( filename );
MATLAB will give an error like this:
Error using fileparts Too many output arguments.
The 4th output argument ("v" in our example) needs to be deleted:
[p,f,e] = fileparts( filename );
FYI: fileparts separates a filename into path (folder), filename, and extension.
GUI/GUIDE slowdown
Use this command to clear memory: java.lang.System.gc()
mex-files
Notes on setting up matlab R2007a/b at mathworks. Note that 32 and 64 bit mex-files are different.
Listbox: coloring individual lines
Here's an example for both background and font:
% list contains entires; for i = 1:length(list) list_colored{i} = sprintf( '<html><DIV bgcolor="yellow"><font color="red">%s</font></DIV></html>', list{i} ); end set(handles.group,'String',list_colored)
0 Comments