summaryrefslogtreecommitdiff
path: root/macros/cplxreal.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-11-30 18:27:20 +0530
committerBrijeshcr2017-11-30 18:27:20 +0530
commitc257cd7a7e766fb89332cca4fb367904767362ed (patch)
tree8f455c21cddfd7856cb53c9436319b2c68e4ab50 /macros/cplxreal.sci
parentcc5c7ee42c6cb2ab94dd0e0f6985778657ab47f5 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-c257cd7a7e766fb89332cca4fb367904767362ed.tar.gz
FOSSEE-Signal-Processing-Toolbox-c257cd7a7e766fb89332cca4fb367904767362ed.tar.bz2
FOSSEE-Signal-Processing-Toolbox-c257cd7a7e766fb89332cca4fb367904767362ed.zip
Help files and functions
Diffstat (limited to 'macros/cplxreal.sci')
-rw-r--r--macros/cplxreal.sci5
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/cplxreal.sci b/macros/cplxreal.sci
index 8443837..a552998 100644
--- a/macros/cplxreal.sci
+++ b/macros/cplxreal.sci
@@ -14,6 +14,11 @@ function [zc, zr] = cplxreal (z, thresh)
//This is an Octave function.
//Every complex element of z is expected to have a complex-conjugate elsewhere in z. From the pair of complex-conjugates, the one with the negative imaginary part is removed.
//If the magnitude of the imaginary part of an element is less than the thresh, it is declared as real.
+//Examples
+//[zc, zr] = cplxreal([1 2 3+i 4 3-i 5])
+//zc = 3 + 1i
+//zr =
+// 1 2 4 5
funcprot(0);
lhs = argn(1)
rhs = argn(2)