Trinh @ Bath

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
it_matlab_startup [2024/03/23 23:20]
trinh
it_matlab_startup [2024/03/23 23:21]
trinh
Line 10: Line 10:
  
  
- % Example startup file  +<code matlab 1> 
-  +% Example startup file  
- % This adds all paths recursively from the directory + 
- addpath(genpath('~/myfunctions')); +% This adds all paths recursively from the directory 
- % This adds a single path +addpath(genpath('~/myfunctions')); 
- addpath ~/mysinglepath/ +% This adds a single path 
-  +addpath ~/mysinglepath/ 
- % Set figure default to something more pragmatic + 
-  +% Set figure default to something more pragmatic 
- colordef white + 
- set(0, 'Units', 'pixels'); +colordef white 
-  +set(0, 'Units', 'pixels'); 
- set(0, 'defaultaxesfontsize', 18, 'defaultaxeslinewidth', 1, ... + 
-         'defaultlinelinewidth', 1, 'defaultpatchlinewidth', .7, ... +set(0, 'defaultaxesfontsize', 18, 'defaultaxeslinewidth', 1, ... 
-         'defaultAxesFontSize', 18); + 'defaultlinelinewidth', 1, 'defaultpatchlinewidth', .7, ... 
-  + 'defaultAxesFontSize', 18); 
-  + 
- set(0,'DefaultFigureColor','w', ... + 
-       'DefaultAxesColor','w',... +set(0,'DefaultFigureColor','w', ... 
-       'DefaultAxesXColor','k',... + 'DefaultAxesColor','w',... 
-       'DefaultAxesYColor','k',... + 'DefaultAxesXColor','k',... 
-       'DefaultAxesZColor','k',... + 'DefaultAxesYColor','k',... 
-       'DefaultTextColor','k',... + 'DefaultAxesZColor','k',... 
-       'DefaultLineColor','k'); + 'DefaultTextColor','k',... 
-  + 'DefaultLineColor','k'); 
- clear + 
- close all +clear 
-  +close all 
- % Add the starting path + 
- cd ~/mystartingpath/+% Add the starting path 
 +cd ~/mystartingpath/ 
 +</code>