Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BeamDynamics
matutil
Commits
ae018c1c
Commit
ae018c1c
authored
Jul 18, 2018
by
ncarmignani
Browse files
added input full_partial to qempanelset
parent
508aa5d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
qem/qemextract.m
View file @
ae018c1c
...
...
@@ -3,7 +3,17 @@ function [qemb,qemres,semres] = qemextract(dirname)
%
%[QEMB,QEMRES,SEMRES]=qemextract(DIRNAME)
%
[
qemres
,
semres
,
qemb
]
=
qempanelset
(
dirname
);
% load quad corrections
filesRM
=
dir
(
fullfile
(
dirname
,
'steer*'
));
if
length
(
filesRM
)
==
66
full_partial
=
0
;
% case partial matrix
elseif
length
(
filesRM
)
==
386
full_partial
=
1
;
% case full matrix
else
error
(
'wrong number of files for response matrix'
);
end
[
qemres
,
semres
,
qemb
]
=
qempanelset
(
dirname
,
full_partial
);
% load quad corrections
[
qemb
(
2
)
.
kn
,
qemb
(
2
)
.
dipdelta
,
qemb
(
2
)
.
dxs
]
=
...
% load quad errors
qemerrload
(
qemres
,
fullfile
(
qemres
.
datadir
,
'quaderrors.mat'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment