projects
/
4yp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Chromatic dispersion and line width phase noise
[4yp.git]
/
normalizeEnergy.m
diff --git a/normalizeEnergy.m
b/normalizeEnergy.m
new file mode 100644
(file)
index 0000000..
8c185dd
--- /dev/null
+++ b/
normalizeEnergy.m
@@ -0,0
+1,4
@@
+function y = normalizeEnergy(x, numSymbs, e)
+ energy = sum(abs(x) .^ 2) / numSymbs;
+ y = x * sqrt(e / energy);
+end