diff options
author | bgtushar | 2017-11-30 14:54:09 +0530 |
---|---|---|
committer | GitHub | 2017-11-30 14:54:09 +0530 |
commit | 99b498fb0cedd8560d18f032a4cb1fcae0c1fadb (patch) | |
tree | 7dc4d248208dd3ea7dac6e4ffb056f9b16a601eb /macros/cplxreal.sci | |
parent | 14d0ad8d846d12b3c82b0b5bc4ffd4d1360ec288 (diff) | |
parent | 9d18f39d1775acd7f96e2388b186bb15068ff910 (diff) | |
download | FOSSEE-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.sci | 5 |
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) |