summaryrefslogtreecommitdiff
path: root/macros/cplxreal.sci
diff options
context:
space:
mode:
authorbgtushar2017-11-30 14:54:09 +0530
committerGitHub2017-11-30 14:54:09 +0530
commit99b498fb0cedd8560d18f032a4cb1fcae0c1fadb (patch)
tree7dc4d248208dd3ea7dac6e4ffb056f9b16a601eb /macros/cplxreal.sci
parent14d0ad8d846d12b3c82b0b5bc4ffd4d1360ec288 (diff)
parent9d18f39d1775acd7f96e2388b186bb15068ff910 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-99b498fb0cedd8560d18f032a4cb1fcae0c1fadb.tar.gz
FOSSEE-Signal-Processing-Toolbox-99b498fb0cedd8560d18f032a4cb1fcae0c1fadb.tar.bz2
FOSSEE-Signal-Processing-Toolbox-99b498fb0cedd8560d18f032a4cb1fcae0c1fadb.zip
Merge pull request #8 from Brijeshcr/master
Added new 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)