From c257cd7a7e766fb89332cca4fb367904767362ed Mon Sep 17 00:00:00 2001 From: Brijeshcr Date: Thu, 30 Nov 2017 18:27:20 +0530 Subject: Help files and functions --- macros/cplxreal.sci | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'macros/cplxreal.sci') 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) -- cgit