This shows you the differences between two versions of the page.
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(' | + | % This adds all paths recursively from the directory |
- | % This adds a single path | + | addpath(genpath(' |
- | addpath ~/ | + | % This adds a single path |
- | + | addpath ~/ | |
- | % Set figure default to something more pragmatic | + | |
- | + | % Set figure default to something more pragmatic | |
- | colordef white | + | |
- | set(0, ' | + | colordef white |
- | + | set(0, ' | |
- | set(0, ' | + | |
- | | + | set(0, ' |
- | | + | ' |
- | + | ' | |
- | + | ||
- | set(0,' | + | |
- | | + | set(0,' |
- | | + | ' |
- | | + | ' |
- | | + | ' |
- | | + | ' |
- | | + | ' |
- | + | ' | |
- | clear | + | |
- | close all | + | clear |
- | + | close all | |
- | % Add the starting path | + | |
- | cd ~/ | + | % Add the starting path |
+ | cd ~/ | ||
+ | </ |