diff options
author | Ankitr19 | 2017-07-07 12:47:56 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-07 12:47:56 +0530 |
commit | 1dc99d862fe3178a3a6e72e2c1338000545ec859 (patch) | |
tree | 9d5ef438302e75e952ba17cb2f678a3196a6ff20 /tests/unit_tests/test_string/scilabcode/asciitest.sci | |
parent | c2e305c3b82ed944d57402dd515b3d5839a31980 (diff) | |
download | Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.tar.gz Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.tar.bz2 Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.zip |
Demos and RPi compiler compatibility
Diffstat (limited to 'tests/unit_tests/test_string/scilabcode/asciitest.sci')
-rw-r--r-- | tests/unit_tests/test_string/scilabcode/asciitest.sci | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit_tests/test_string/scilabcode/asciitest.sci b/tests/unit_tests/test_string/scilabcode/asciitest.sci new file mode 100644 index 0000000..aa0017d --- /dev/null +++ b/tests/unit_tests/test_string/scilabcode/asciitest.sci @@ -0,0 +1,11 @@ +//This function test the ascii function in scilab. +//Ascii function takes the input string and then gives the ascii code of the string. +// The output for the scilab will be:- +//[97. 110. 107. 105. 116. 32. 105. 115. 32. 114. 97. 106.] + +function asciitest() + y="ankit is raj"; //This is the input string for testing the function. + x=ascii(y); //calling of the function + disp(x); +endfunction + |