Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit f9596aa

Browse files
author
Tim Harder
committed
Filter Wizard: various white space consistency fixes
Signed-off-by: Tim Harder <timothy.harder@analog.com>
1 parent e54a3c2 commit f9596aa

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

AD9361_Filter_Wizard/AD9361_Filter_Wizard.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ function AD9361_Filter_Wizard_OpeningFcn(hObject, eventdata, handles, varargin)
161161
set(handles.save2workspace, 'String', varargin{i + 1});
162162
elseif strcmpi(varargin{i}, 'DefaultRxVals')
163163
% 'DefaultRxVals' 'structure (in Hz)'
164-
input = varargin{i +1};
164+
input = varargin{i + 1};
165165
input.RxTx = 'Rx';
166-
handles.input_rx = cook_input(input);
166+
handles.input_rx = cook_input(input);
167167
new = 1;
168168
elseif strcmpi(varargin{i}, 'DefaultTxVals')
169169
% 'DefaultTxVals' 'structure (in Hz)'
170-
input = varargin{i +1};
170+
input = varargin{i + 1};
171171
input.RxTx = 'Tx';
172172
handles.input_tx = cook_input(input);
173173
new = 1;

AD9361_Filter_Wizard/cook_input.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,21 @@
166166
% works out to 2560000. Actual number is 2250000
167167
input.Fpass = input.Rdata / 3;
168168
end
169-
169+
170170
if ~isfield(input, 'Fstop')
171171
% Asssume that Fstop is 1.25 Fpass, again close to LTE5
172172
input.Fstop = input.Fpass * 1.25;
173173
end
174-
174+
175175
if ~isfield(input, 'Fcenter')
176176
input.Fcenter = 0;
177177
end
178178
elseif strcmp(input.Type, 'Bandpass')
179179
error('Bandpass is not done yet');
180180
end
181181

182-
183-
% struct.dBripple = Passband ripple (Apass) in dB (peak to peak)
184-
% struct.dBstop = Cascaded (FIR + HB + Analog) stop band attenuation (in dB)
182+
% struct.dBripple = Passband ripple (Apass) in dB (peak to peak)
183+
% struct.dBstop = Cascaded (FIR + HB + Analog) stop band attenuation (in dB)
185184
if ~isfield(input, 'dBripple')
186185
input.dBripple = .5;
187186
end
@@ -190,7 +189,6 @@
190189
input.dBstop = 80;
191190
end
192191

193-
194192
% Assume no phase equalization
195193
if ~isfield(input, 'phEQ')
196194
input.phEQ = -1;

0 commit comments

Comments
 (0)