diff options
author | yash1112 | 2017-07-07 21:20:49 +0530 |
---|---|---|
committer | yash1112 | 2017-07-07 21:20:49 +0530 |
commit | 3f52712f806fbd80d66dfdcaff401e5cf94dcca4 (patch) | |
tree | a8333b8187cb44b505b9fe37fc9a7ac8a1711c10 /macros/FunctionAnnotation/FA_SZ_FACTOR.sci | |
download | scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.gz scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.bz2 scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.zip |
sci2c arduino updated
Diffstat (limited to 'macros/FunctionAnnotation/FA_SZ_FACTOR.sci')
-rw-r--r-- | macros/FunctionAnnotation/FA_SZ_FACTOR.sci | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/FunctionAnnotation/FA_SZ_FACTOR.sci b/macros/FunctionAnnotation/FA_SZ_FACTOR.sci new file mode 100644 index 00000000..d816ff75 --- /dev/null +++ b/macros/FunctionAnnotation/FA_SZ_FACTOR.sci @@ -0,0 +1,20 @@ +function opout = FA_SZ_FACTOR(inval) + +// 17-Dec-2016 -- Author : Shamik Guha + +inval=string(inval); +if (isnum(inval)) then + in_num = eval(inval) ; + out=factor(in_num); + //disp(out); + +else + error(36, "Wrong input argument "+inval+"."); + +end + + +out=(length(out)); +opout=string(out); + +endfunction |