User Tools

Site Tools


This is an old revision of the document!

MATLAB helpful hacks

Index Non-Empty Cells in Cell Array


When MATLAB starts, it looks for a pathdef.m file in its startup directory.

Start up folder (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; % set additional paths dynamically, e.g. p = genpath('D:\Sources\MATLAB'); addpath(p);
EditorMacro('Alt-Control-h', @createHeaderComment_dag);
dbstop if error
matlab/matlab_helpful_hacks.1439307107.txt.gz · Last modified: 2015/08/11 15:31 by igorkagan