/
blast.m
52 lines (50 loc) · 1.01 KB
/
blast.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
function[] = blast(varargin)
if nargin == 0
option = 'vanilla';
else
option = varargin{1};
end
switch option
case 'vars'
evalin('caller', 'clear variables')
clc;
case 'figs'
close all;
clc;
case 'vanilla'
close all force;
evalin('caller', 'clear variables')
clc;
case 'twice'
close all force;
evalin('caller', 'clear variables')
close all force;
evalin('caller', 'clear variables')
clc;
case 'more'
close all force;
evalin('caller', 'clear all')
clc;
case 'all'
close all force;
evalin('caller', 'clear all')
clc;
allopen = matlab.desktop.editor.getAll;
allopen.close;
case 'extreme'
close all force;
evalin('caller', 'clear all')
clc;
allopen = matlab.desktop.editor.getAll;
allopen.closeNoPrompt;
case 'abort'
close all force;
evalin('caller', 'clear all')
clc;
allopen = matlab.desktop.editor.getAll;
allopen.closeNoPrompt;
if ismac
system('say -v Zarvox oh noes!')
end
quit force
end