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 /Tutorial02-Plots/Scilab_code/Tutotial2_plotting.sce | |
parent | 4d0d95e5748137abe4636dc734b03b4e7ccfd6f5 (diff) | |
download | scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.gz scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.tar.bz2 scilab-tutorials-6d39446c434cfcca02ae7a4551e2d66edf9def7f.zip |
Renamed dirs
Diffstat (limited to 'Tutorial02-Plots/Scilab_code/Tutotial2_plotting.sce')
-rw-r--r-- | Tutorial02-Plots/Scilab_code/Tutotial2_plotting.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tutorial02-Plots/Scilab_code/Tutotial2_plotting.sce b/Tutorial02-Plots/Scilab_code/Tutotial2_plotting.sce new file mode 100644 index 0000000..5494863 --- /dev/null +++ b/Tutorial02-Plots/Scilab_code/Tutotial2_plotting.sce @@ -0,0 +1,16 @@ +//This script demonstrate basic plot command in Scilab +clear +clc + +//Import data from file +Data = csvRead('/home/chayan/Documents/scilab-tutorials/Tutorial2_Plot/Data/Tut2_data1.csv'); + +//Segregate the data into variables +t = Data(:,1); +x = Data(:,2); + +//Plotting x versus t +plot(t,x); + +xtitle('A x versus t plot','Time','Data') + |