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
dd7370d1
Commit
dd7370d1
authored
Nov 06, 2020
by
Russell Luke
Browse files
Matlab test code
parent
14a1c51a
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/experiments/phase/Elser_processor.m
View file @
dd7370d1
...
...
@@ -5,30 +5,30 @@ M=max(size(x));
fmag
=
zeros
(
M
,
M
/
2
);
Fmag
=
zeros
(
M
,
M
);
for
(
i
=
1
:
M
/
2
)
j
=
1
;
j
=
1
;
datapow
=
x
(
i
,
j
)
+
datapow
;
fmag
(
i
,
j
)
=
sqrt
(
x
(
i
,
j
))/
M
;
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
for
(
j
=
2
:
M
/
2
)
datapow
=
2
*
x
(
i
,
j
)
+
datapow
;
fmag
(
i
,
j
)
=
sqrt
(
x
(
i
,
j
))/
M
;
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
if
(
i
>
1
)
Fmag
(
M
-
(
j
-
2
),
M
-
(
i
-
2
))
=
fmag
(
i
,
j
);
end
end
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
if
(
i
>
1
)
Fmag
(
M
-
(
j
-
2
),
M
-
(
i
-
2
))
=
fmag
(
i
,
j
);
end
end
end
for
(
i
=
M
/
2
+
1
:
M
)
j
=
1
;
j
=
1
;
datapow
=
x
(
i
,
j
)
+
datapow
;
fmag
(
i
,
j
)
=
sqrt
(
x
(
i
,
j
))/
M
;
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
for
(
j
=
2
:
M
/
2
)
datapow
=
2
*
x
(
i
,
j
)
+
datapow
;
fmag
(
i
,
j
)
=
sqrt
(
x
(
i
,
j
))/
M
;
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
Fmag
(
j
,
i
)
=
fmag
(
i
,
j
);
end
Fmag
(
i
,
j
)
=
fmag
(
i
,
j
);
Fmag
(
j
,
i
)
=
fmag
(
i
,
j
);
end
end
Fmag
(
1
,
M
/
2
:
M
)
=
fmag
(
M
/
2
:
M
,
1
);
...
...
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