-
Notifications
You must be signed in to change notification settings - Fork 2
/
fftoptionbox.m
180 lines (178 loc) · 5.69 KB
/
fftoptionbox.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
function fig = fftoptionbox()
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
%
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files. Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.
mat1='if get(gco,''value'')==1 || (get(gco,''value'')==0 && get(findobj(''tag'',''RatioHarmonic''),''value'')==0);set(findobj(''tag'',''RatioHarmonic''),''value'',0);set(gco,''value'',1);end';
mat2='if get(gco,''value'')==1 | (get(gco,''value'')==0 & get(findobj(''tag'',''SingleHarmonic''),''value'')==0);set(findobj(''tag'',''SingleHarmonic''),''value'',0);set(gco,''value'',1);end';
h0 = figure('Color',[0.8 0.8 0.8], ...
'FileName','fftoptionbox.m', ...
'MenuBar','none', ...
'Name','FFT Options', ...
'NumberTitle','off', ...
'Position',[0 0 250 300], ...
'Units','Pixels', ...
'Resize','on', ...
'Tag','FFTOptions Figure', ...
'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'ListboxTop',0, ...
'Position',[0 0 250 300], ...
'Style','frame', ...
'Tag','Frame1');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0], ...
'ListboxTop',0, ...
'Position',[20 222 70 23], ...
'String','Temporal Frequency', ...
'Style','text', ...
'Tag','Label');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[1 1 1], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0], ...
'ListboxTop',0, ...
'Position',[100 230 50 20], ...
'String','1', ...
'Style','edit', ...
'Tag','TempFreqBox');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0], ...
'ListboxTop',0, ...
'Position',[160 230 20.25 15], ...
'String','Hz', ...
'Style','text', ...
'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'Callback',mat1, ...
'FontWeight','light', ...
'ListboxTop',0, ...
'Position',[10 190 110 15], ...
'String','Single Harmonic', ...
'Style','radiobutton', ...
'Tag','SingleHarmonic', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[130 190 60 20], ...
'String','1', ...
'Style','edit', ...
'Tag','SingHarmnBox');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'Callback',mat2, ...
'ListboxTop',0, ...
'Position',[10 155 110 15], ...
'String','Ratio', ...
'Style','radiobutton', ...
'Tag','RatioHarmonic');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[100 155 60 20], ...
'Style','edit', ...
'Tag','Harmn1Box');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'FontSize',12, ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[160 155 9 16.5], ...
'String','/', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[175 155 60 20], ...
'Style','edit', ...
'Tag','Harmn2Box');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'Callback','global choice; choice=1;', ...
'ListboxTop',0, ...
'Position',[20 20 200 18], ...
'String','Continue', ...
'Tag','FFTContinueButton');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.5 0.5 0.5], ...
'FontAngle','italic', ...
'FontName','Helvetica', ...
'FontSize',12, ...
'FontWeight','bold', ...
'ForegroundColor',[1 1 0], ...
'ListboxTop',0, ...
'Position',[0 280 250 20], ...
'String','FFT Options', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.6 0.6 0.6], ...
'Callback','vshelp(''FFTOpts'')', ...
'FontName','Helvetica', ...
'FontWeight','bold', ...
'ListboxTop',0, ...
'Position',[227 282 15 15], ...
'String','?', ...
'Tag','Pushbutton4');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'ListboxTop',0, ...
'Position',[10 120 150 15], ...
'String','Infinity Point = (max) x', ...
'Style','checkbox', ...
'Tag','SetInfPoint');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[160 120 50 20], ...
'Style','edit', ...
'Tag','InfPointBox');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[0.85 0.85 0.85], ...
'ListboxTop',0, ...
'Position',[10 90 120 14.25], ...
'String','0/0 Point = (-1) x', ...
'Style','text', ...
'Tag','SetNaNPoint');
h1 = uicontrol('Parent',h0, ...
'Units','pixels', ...
'BackgroundColor',[1 1 1], ...
'ListboxTop',0, ...
'Position',[160 90 50 20], ...
'Style','edit', ...
'Tag','ZeroPointBox');
if nargout > 0, fig = h0; end