diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /692/CH2/EX2.5 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '692/CH2/EX2.5')
-rwxr-xr-x | 692/CH2/EX2.5/P2_5.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/692/CH2/EX2.5/P2_5.sce b/692/CH2/EX2.5/P2_5.sce new file mode 100755 index 000000000..a1a3b05cc --- /dev/null +++ b/692/CH2/EX2.5/P2_5.sce @@ -0,0 +1,16 @@ +//EXAMPLE 2.5,Conjugate-Antisymmetric & Conjugate-symmetric parts of Sequence +clc; +clear; +g=[0, 1+%i*4, -2+%i*3, 4-%i*2, -5-%i*6, -%i*2, 3]; +disp(g,'g = ') +g1=conj(g); //Conjugate of g; +disp(g1,conj(g)); +a=length(g); +for i=1:a + g2(1,i)=g1(a-i+1); +end + +gcs=(g+g2)/2 //Conjugate-Symmetric part +disp(gcs,'The Conjugate symmetric part is ='); +gcas=(g-g2)/2; //Conjugate-Antisymmetric part +disp(gcas,'The Conjugate antisymmetric part is =');
\ No newline at end of file |