summaryrefslogtreecommitdiff
path: root/macros/idst1.sci
diff options
context:
space:
mode:
authorRashmi Patankar2025-04-30 15:01:49 +0530
committerGitHub2025-04-30 15:01:49 +0530
commit0495a12104d8466509769fc34271757f00577709 (patch)
treecb208dd421d39051d85f4ef0476c9208ef2c41ab /macros/idst1.sci
parenta0bff158d21c2c12a12781bc5019f3a45bd866b2 (diff)
parentec6379e7494ff4ca2dc7c7524013d109be450bae (diff)
downloadFOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.tar.gz
FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.tar.bz2
FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.zip
Merge pull request #21 from avinashlalotra/masterHEADmaster
Fixed Failing test scripts
Diffstat (limited to 'macros/idst1.sci')
-rw-r--r--macros/idst1.sci31
1 files changed, 16 insertions, 15 deletions
diff --git a/macros/idst1.sci b/macros/idst1.sci
index f7fdc6d..9b6d3e4 100644
--- a/macros/idst1.sci
+++ b/macros/idst1.sci
@@ -1,19 +1,20 @@
-/*Description
- This function computes the inverse type I discrete sine transform of X If N is given,
- then X is padded or trimmed to length N before computing the transform.
- If X is a matrix, compute the transform along the columns of the the matrix.
-Calling Sequence
- Y = idst1(X)
- Y = idst1(X, N)
-Parameters
- X: Matrix or integer
- N: If N is given, then X is padded or trimmed to length N before computing the transform.
-Examples
- idst1([1,3,6])
- ans =
- 3.97487 -2.50000 0.97487 */
function x = idst1 (y, n)
- nargin=argn(2)
+// Description
+// This function computes the inverse type I discrete sine transform of X If N is given,
+// then X is padded or trimmed to length N before computing the transform.
+// If X is a matrix, compute the transform along the columns of the the matrix.
+// Calling Sequence
+// Y = idst1(X)
+// Y = idst1(X, N)
+// Parameters
+// X: Matrix or integer
+// N: If N is given, then X is padded or trimmed to length N before computing the transform.
+// Examples
+// idst1([1,3,6])
+// ans =
+// 3.97487 -2.50000 0.97487
+
+ nargin=argn(2)
if (nargin < 1 || nargin > 2)
error("invalid input arguments")
end