summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/test_string/scilabcode/asciitest.sci
blob: aa0017d73f5e695940f3f8c7810699008a410539 (plain)
1
2
3
4
5
6
7
8
9
10
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