Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
14a1c51a
Commit
14a1c51a
authored
Oct 16, 2020
by
Russell Luke
Browse files
Double checking the Elser Processor
parent
f0c4bfb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/experiments/phase/Elser_processor.m
View file @
14a1c51a
...
...
@@ -30,4 +30,14 @@ for(i=M/2+1:M)
Fmag
(
j
,
i
)
=
fmag
(
i
,
j
);
end
end
Fmag(1,M/2:M)=fmag(M/2:M,1);
\ No newline at end of file
Fmag
(
1
,
M
/
2
:
M
)
=
fmag
(
M
/
2
:
M
,
1
);
% Now try this a different way:
Fmag2
=
zeros
(
M
,
M
);
fmag2
=
sqrt
(
x
)/
M
;
fmag2
(:,
M
/
2
+
1
)
=
0
;
Fmag2
(:,
1
:
M
/
2
+
1
)
=
fmag2
;
Fmag2
(
2
:
M
/
2
,
M
/
2
+
2
:
M
)
=
fmag2
(
M
:
-
1
:
M
/
2
+
2
,
M
/
2
-
1
:
-
1
:
1
);
Fmag2
(
M
/
2
+
2
:
M
,
M
/
2
+
2
:
M
)
=
fmag2
(
M
/
2
:
-
1
:
2
,
M
/
2
:
-
1
:
2
);
Fmag2
(
1
,
M
/
2
:
M
)
=
fmag2
(
M
/
2
:
M
,
1
);
datapow2
=
sum
(
sum
(
Fmag2
.^
2
))
*
M
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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