diff options
author | siddhu8990 | 2016-01-13 11:16:07 +0530 |
---|---|---|
committer | siddhu8990 | 2016-01-13 11:16:07 +0530 |
commit | ef666a6b9ac74d5effe8b34179cc3ad0c247e7c3 (patch) | |
tree | 6cac6dba19d159bfca4f450b68aad627e9294091 /2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci | |
parent | 6294db4b43ec07171c2c3a868069b5023d8835a0 (diff) | |
parent | 03a27e6884942182e984433fd2ebba7e5f55a4d9 (diff) | |
download | Scilab2C-ef666a6b9ac74d5effe8b34179cc3ad0c247e7c3.tar.gz Scilab2C-ef666a6b9ac74d5effe8b34179cc3ad0c247e7c3.tar.bz2 Scilab2C-ef666a6b9ac74d5effe8b34179cc3ad0c247e7c3.zip |
Merge branch 'master' of https://github.com/siddhu8990/Scilab2C
Diffstat (limited to '2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci')
-rw-r--r-- | 2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci b/2.3-1/macros/FunctionAnnotation/FA_SZ_ROW_COLUMN_CAT.sci new file mode 100644 index 00000000..5ab0c649 --- /dev/null +++ b/2.3-1/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
|