summaryrefslogtreecommitdiff
path: root/macros/gftrunc.sci
diff options
context:
space:
mode:
authorrupak2020-01-21 19:05:09 +0530
committerrupak2020-01-21 19:05:09 +0530
commitd2f4d30ebcad7430e4f0495cae5c2b3a16be73ce (patch)
tree8987d169ad87e930f137122a450c02dc5d13dcc5 /macros/gftrunc.sci
parent36aca8aaaee5cf8cb5452268fd07c0b558b000a3 (diff)
downloadFOSSEE-Communication-Systems-Toolbox-d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce.tar.gz
FOSSEE-Communication-Systems-Toolbox-d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce.tar.bz2
FOSSEE-Communication-Systems-Toolbox-d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce.zip
added help filesHEADmaster
Diffstat (limited to 'macros/gftrunc.sci')
-rw-r--r--macros/gftrunc.sci20
1 files changed, 8 insertions, 12 deletions
diff --git a/macros/gftrunc.sci b/macros/gftrunc.sci
index de0e6e6..5381d1c 100644
--- a/macros/gftrunc.sci
+++ b/macros/gftrunc.sci
@@ -1,25 +1,21 @@
function at=gftrunc(a)
//This function is used to truncate the higher order zeroes in the given polynomial equation
-
-//Calling Sequence
+//
+// Calling Sequence
//AT=GFTRUNC(A)
-
-//Description
+//
+// Description
//A is considered to be matrix that gives the coefficients of polynomial GF(p) in ascending order powers
//A = [1 2 3] denotes 1 + 2 x + 3 x^2
//AT=GFTRUNC(A) returns a matrix which gives the polynomial GF(p) truncating the input matrix
//that is if A(i)=0, where i > d + 1, where d is the degree of the polynomial, that zero is removed
-
+//
//Examples
-//A= [ 0 0 1 4 0 0] returns [0 0 1 4]
+//A= [ 0 0 1 4 0 0]
//c = gftrunc([0 0 1 2 3 0 0 0 4 5 0 1 0 0])
-
-
-//See also
-//gfadd, gfconv, gfdeconv, gfsub, gftuple
-
+//
//Authors
-//Pola Lakshmi Priyanka, IIT Bombay//
+//Pola Lakshmi Priyanka, IIT Bombay
//*************************************************************************************************************************************//
// Check number of input arguments