diff options
author | imushir | 2016-02-09 16:38:27 +0530 |
---|---|---|
committer | imushir | 2016-02-09 16:38:27 +0530 |
commit | a6efab1a42eda8c1e3902c2f2d030a9cb9cfd25e (patch) | |
tree | 70d366ae6a84d201f23895071a8064068e77011f /2.3-1/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.sci | |
parent | 7bc57b2061931e5b5843ac6616591b7cff9e9476 (diff) | |
download | Scilab2C-a6efab1a42eda8c1e3902c2f2d030a9cb9cfd25e.tar.gz Scilab2C-a6efab1a42eda8c1e3902c2f2d030a9cb9cfd25e.tar.bz2 Scilab2C-a6efab1a42eda8c1e3902c2f2d030a9cb9cfd25e.zip |
Support for Servo motor for Arduino. Support for'diag' in c
Diffstat (limited to '2.3-1/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.sci')
-rw-r--r-- | 2.3-1/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.sci | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/2.3-1/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.sci b/2.3-1/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.sci new file mode 100644 index 00000000..df129f97 --- /dev/null +++ b/2.3-1/macros/FunctionAnnotation/FA_SZ_COLUMN_DIAG.sci @@ -0,0 +1,28 @@ +function outsize = FA_SZ_COLUMN_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(2)=='1') then + outsize = insize(1); + + elseif(insize(1) == insize(2)) + outsize = '1'; + else + outsize = insize(2); + + end +endfunction |