matlab:matlab_helpful_hacks
This is an old revision of the document!
MATLAB helpful hacks
~~TOC~~
Index Non-Empty Cells in Cell Array
http://www.mathworks.com/matlabcentral/answers/42283-index-non-empty-cells-in-cell-array
x = {1,[],[],[]}; find(~cellfun(@isempty,x))
startup.m
Starting folder for MATLAB (in the icon | Properties | Start in ) (e.g. D:\Sources\MATLAB) allows controlling different paths and other settings via startup.m file placed in the folder, e.g.:
disp('Welcome to physiology analysis...'); set_sources_path; cd('F:\Data'); EditorMacro('Alt-Control-h', @createHeaderComment_dag); dbstop if error
matlab/matlab_helpful_hacks.1438967163.txt.gz · Last modified: 2022/12/29 07:15 (external edit)