User Tools

Site Tools


matlab:matlab_helpful_hacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
matlab:matlab_helpful_hacks [2018/11/01 06:03] igorkaganmatlab:matlab_helpful_hacks [2022/12/29 07:15] (current) – external edit 127.0.0.1
Line 10: Line 10:
 x = {1,[],[],[]}; find(~cellfun(@isempty,x)) </code> x = {1,[],[],[]}; find(~cellfun(@isempty,x)) </code>
  
-==== startup.m ==== 
- 
-When MATLAB starts, it will look for a **pathdef.m** file in its startup directory. 
- 
-Start up folder (in the MATLAB 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.:  
- 
-<code matlab> 
-disp('Welcome to physiology analysis...'); 
-set_sources_path; % set additional paths dynamically, e.g.  
-% addpath(genpath('D:\Sources\MATLAB')); 
- 
-cd('F:\Data'); 
-edit; 
-EditorMacro('Alt-Control-h', @createHeaderComment_dag); 
- 
-dbstop if error 
-</code> 
  
 ==== Exiting loop (for / while -> pause) gracefully ==== ==== Exiting loop (for / while -> pause) gracefully ====
Line 75: Line 58:
  
 You have to do it for each of the colormaps. You have to do it for each of the colormaps.
 +
 +==== Close all windows in Editor ====
 +<code matlab>closeNoPrompt(matlab.desktop.editor.getAll);</code>
  
  
  
matlab/matlab_helpful_hacks.1541052232.txt.gz · Last modified: 2022/12/29 07:15 (external edit)