summaryrefslogtreecommitdiff
path: root/macros/unwrap2.sci
diff options
context:
space:
mode:
authorbgtushar2017-11-27 20:45:48 +0530
committerbgtushar2017-11-27 20:45:48 +0530
commit1a9dc5fe1e700a123787f6183bceacaefaf954d6 (patch)
tree0f34c00c10efe4a7bf51b13c246deef73bc8c70b /macros/unwrap2.sci
parente9ab4b0b52db51be30f4ac3d07673c20b48da13c (diff)
downloadFOSSEE-Signal-Processing-Toolbox-1a9dc5fe1e700a123787f6183bceacaefaf954d6.tar.gz
FOSSEE-Signal-Processing-Toolbox-1a9dc5fe1e700a123787f6183bceacaefaf954d6.tar.bz2
FOSSEE-Signal-Processing-Toolbox-1a9dc5fe1e700a123787f6183bceacaefaf954d6.zip
Deleted bin and HTML, Added Functions
Diffstat (limited to 'macros/unwrap2.sci')
-rw-r--r--macros/unwrap2.sci20
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/unwrap2.sci b/macros/unwrap2.sci
new file mode 100644
index 0000000..5b19283
--- /dev/null
+++ b/macros/unwrap2.sci
@@ -0,0 +1,20 @@
+function Y = unwrap2 (X, TOL, DIM)
+
+funcprot(0);
+lhs = argn(1)
+rhs = argn(2)
+if (rhs < 1 | rhs > 3)
+error("Wrong number of input arguments.")
+end
+
+select(rhs)
+
+ case 1 then
+ Y = callOctave("unwrap",X)
+ case 2 then
+ Y = callOctave("unwrap",X,TOL)
+ case 3 then
+ Y = callOctave("unwrap",X,TOL,DIM)
+ end
+
+endfunction