summaryrefslogtreecommitdiff
path: root/macros/FunctionAnnotation
diff options
context:
space:
mode:
authorsiddhu89902016-01-13 11:16:07 +0530
committersiddhu89902016-01-13 11:16:07 +0530
commit1ff7f5293444b22b46ff7bd51d52a845dc20525c (patch)
treee5a40c0b5b7f78082dcbdd8709181a630a7ace15 /macros/FunctionAnnotation
parent7cba1cf7d2ee89559239a22c50297a1545de0587 (diff)
parent7382a75d68141d72562f219a839543c9c6fc83aa (diff)
downloadScilab2C_fossee_old-1ff7f5293444b22b46ff7bd51d52a845dc20525c.tar.gz
Scilab2C_fossee_old-1ff7f5293444b22b46ff7bd51d52a845dc20525c.tar.bz2
Scilab2C_fossee_old-1ff7f5293444b22b46ff7bd51d52a845dc20525c.zip
Merge branch 'master' of https://github.com/siddhu8990/Scilab2C
Diffstat (limited to 'macros/FunctionAnnotation')
-rw-r--r--macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci b/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci
new file mode 100644
index 0000000..5ab0c64
--- /dev/null
+++ b/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci
@@ -0,0 +1,23 @@
+function outsize = FA_SZ_ROW_COLUMN_CAT(inval,in1size,in2size)
+
+
+//Check the input arguments
+SCI2CNInArgCheck(argn(2),3,3);
+in1size = string(in1size);
+in2size = string(in2size);
+inval = string(inval);
+if(inval == '1') then
+ in1num_r = eval(in1size);
+ in2num_r = eval(in2size);
+ outsize(1) = string(in1num_r + in2num_r);
+ outsize(2) = string(in2num_r);
+elseif(inval == '2') then
+ in1num_c = eval(in1size);
+ in2num_c = eval(in2size)
+ outsize(1) = string(in1num_c);
+ outsize(2) = string(in1num_c + in2num_c);
+else
+ error(36, "Wrong input argument '+inval+'. Use 1 or 2 as first argument in cat command.");
+end
+
+endfunction