summaryrefslogtreecommitdiff
path: root/2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci
diff options
context:
space:
mode:
authorsiddhu89902016-03-02 14:32:06 +0530
committersiddhu89902016-03-02 14:32:06 +0530
commit070c6a83075034f4322faf84b1c4623da314a2e9 (patch)
tree4d1b2aa9ef7847620bd0e34a01957e9a05499923 /2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci
parentb31a4a5f8a03f516d6ec21efb31f9892cb46f9f3 (diff)
parentec6d011ec9b0e656f3c0d122fcba0c1d01e8cb32 (diff)
downloadScilab2C-070c6a83075034f4322faf84b1c4623da314a2e9.tar.gz
Scilab2C-070c6a83075034f4322faf84b1c4623da314a2e9.tar.bz2
Scilab2C-070c6a83075034f4322faf84b1c4623da314a2e9.zip
Merged with linspace and logspace
Diffstat (limited to '2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci')
-rw-r--r--2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci26
1 files changed, 26 insertions, 0 deletions
diff --git a/2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci b/2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci
new file mode 100644
index 00000000..687a89e4
--- /dev/null
+++ b/2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_DIAG.sci
@@ -0,0 +1,26 @@
+function outsize = FA_SZ_ROW_DIAG(insize)
+// function outsize = FA_SZ_1(insize)
+// -----------------------------------------------------------------
+// Returns the first element of the size array.
+//
+// Input data:
+// insize: size of input argument. It is an array of 2 strings.
+// The first string specifies the number of rows.
+// The second string specifies the number of columns.
+//
+// Output data:
+// outsize: first element of the insize array.
+//
+// Status:
+// 08-Dec-2007 -- Raffaele Nutricato: Author.
+// 08-Dec-2007 -- Alberto Morea: Test Ok.
+// -----------------------------------------------------------------
+
+if(insize(1)=='1') then
+ outsize = insize(2);
+elseif(insize(1) == insize(2))
+ outsize = insize(1);
+else
+ outsize = insize(1);
+end
+endfunction