-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRefRawData.m
More file actions
40 lines (28 loc) · 824 Bytes
/
Copy pathRefRawData.m
File metadata and controls
40 lines (28 loc) · 824 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
39
40
classdef RefRawData < handle
properties
q
ref
err
energy = 10
path
file
qcut = 0.026
end
methods
function this = RefRawData(file)
rawdata = importdata(file);
this.q = rawdata(:, 1);
this.ref = rawdata(:, 2);
this.err = rawdata(:, 3);
[pathname, filename, extension] = fileparts(file);
this.file = [filename, extension];
this.path = pathname;
end
function d = goodData(this)
sel = this.q > this.qcut;
d.q = this.q(sel);
d.ref = this.ref(sel);
d.err = this.err(sel);
end
end
end