diff options
author | jofret | 2009-04-28 07:11:01 +0000 |
---|---|---|
committer | jofret | 2009-04-28 07:11:01 +0000 |
commit | b22f596ce449869bffd8e0f63baee1c53e20fa06 (patch) | |
tree | 24e5c3ca47f535b5340a969edf31b774b356848b /macros/FunctionAnnotation/FA_SZ_OPSLASH.sci | |
parent | f96b66fe2423831bcad2f141469de6805364d019 (diff) | |
download | scilab2c-b22f596ce449869bffd8e0f63baee1c53e20fa06.tar.gz scilab2c-b22f596ce449869bffd8e0f63baee1c53e20fa06.tar.bz2 scilab2c-b22f596ce449869bffd8e0f63baee1c53e20fa06.zip |
Moving macros here
Diffstat (limited to 'macros/FunctionAnnotation/FA_SZ_OPSLASH.sci')
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_OPSLASH.sci | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci b/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci new file mode 100644 index 00000000..78ddecec --- /dev/null +++ b/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci @@ -0,0 +1,45 @@ +function opoutsize = FA_SZ_OPSLASH(in1size,in2size)
+// function opoutsize = FA_SZ_OPSLASH(in1size,in2size)
+// -----------------------------------------------------------------
+// Returns the size of the output computed by OPSLASH operator.
+//
+//
+// Status:
+// 28-May-2008 -- Alberto Morea: Author.
+// 28-May-2008 -- Raffaele Nutricato: Test Ok.
+//
+// Copyright 2008 Raffaele Nutricato & Alberto Morea.
+// Contact: raffaele.nutricato@tiscali.it
+// -----------------------------------------------------------------
+
+// ------------------------------
+// --- Check input arguments. ---
+// ------------------------------
+SCI2CNInArgCheck(argn(2),2,2);
+
+// ------------------------
+// --- Generate Output. ---
+// ------------------------
+in1size=string(in1size);
+in2size=string(in2size);
+
+// knowing that
+// b/a = (a' \ b')' +
+// a'
+in1sizetmp(1) = in1size(2);
+in1sizetmp(2) = in1size(1);
+
+// b'
+in2sizetmp(1) = in2size(2);
+in2sizetmp(2) = in2size(1);
+
+// a'\b'
+opoutsizetmp = FA_SZ_OPBACKSLASH(in2sizetmp,in1sizetmp);
+
+// (a'\b')'
+opoutsize(1) = opoutsizetmp(2);
+opoutsize(2) = opoutsizetmp(1);
+
+
+endfunction
|