-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathconstruct2d.m
More file actions
38 lines (37 loc) · 847 Bytes
/
construct2d.m
File metadata and controls
38 lines (37 loc) · 847 Bytes
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
function s=construct2d(varargin)
switch nargin
case 0
s = struct('freq',[],...
'time',[],...
't2',[],...
't3',[],...
'w1',[],...
'w3',[],...
'R',[],...
'R1',[],...
'R2',[],...
'phase',[],...
'R1_noise',[],...
'R2_noise',[],...
'basename',[],...
'undersampling',[],...
'centerfreq',[],...
'resolution',[],...
'zeropad',[],...
'time_units',[],...
'freq_units',[],...
'spec_calib',[],...
'pump_probe',[],...
'pump_probe_freq',[],...
'comment',[],...
'date',[],...
'time_stamp',[],...
'n_shots',[],...
'n_scan',[]);
case 1
if isa(varargin{1},'struct')
s = varargin{1};
else
error('Construct2d wrong argument type');
end
end