diff options
author | P Sunthar | 2018-10-02 00:09:14 +0530 |
---|---|---|
committer | P Sunthar | 2018-10-02 00:09:14 +0530 |
commit | 6d39446c434cfcca02ae7a4551e2d66edf9def7f (patch) | |
tree | f0e84e8fadd28600bfdeadf1471d59be5eaee54a /Tutorial1_Basic/Scilab_code/Tutorial1_function.sce | |
parent | 4d0d95e5748137abe4636dc734b03b4e7ccfd6f5 (diff) | |
download | scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.gz scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.bz2 scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.zip |
Renamed dirs
Diffstat (limited to 'Tutorial1_Basic/Scilab_code/Tutorial1_function.sce')
-rw-r--r-- | Tutorial1_Basic/Scilab_code/Tutorial1_function.sce | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Tutorial1_Basic/Scilab_code/Tutorial1_function.sce b/Tutorial1_Basic/Scilab_code/Tutorial1_function.sce deleted file mode 100644 index 164430c..0000000 --- a/Tutorial1_Basic/Scilab_code/Tutorial1_function.sce +++ /dev/null @@ -1,27 +0,0 @@ -//This Matlab script is used to compute mean and standard deviation of data - -//Clears all previous variables stored -clear - -//Clears screen -clc - - -//Executing the mymean function that computes the mean of a given data -exec mymean.sci; -//Executing the mystdev function that computes the standard deviation of a given data -exec mystdev.sci; - - -//Data for which the mean and standard-deviation is required -x = [1 2 5]; - -//Calling the mymean function. It takes data (a vector) as the input argument and returns mean of the data as output -mean_of_x = mymean(x); -disp(mean_of_x,'Mean of x'); - -//Calling the mystdev function. It takes data (a vector) and its mean as the input argument -//It returns standard deviation of the data as output -stddev_of_x = mystdev(x,mean_of_x); -disp(stddev_of_x,'Standard deviation of x'); - |