diff options
author | Chayan Bhawal | 2018-10-01 03:21:11 +0530 |
---|---|---|
committer | Chayan Bhawal | 2018-10-01 03:21:11 +0530 |
commit | d70da5e732149071f715e080407aa5c74e3da44a (patch) | |
tree | ab5273a19f600fde8406eb7ad8431196dd8b39ff /Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce | |
parent | 20c792454b7757064cb5ced103357bfed42d9b1a (diff) | |
download | scilab-tutorials-d70da5e732149071f715e080407aa5c74e3da44a.tar.gz scilab-tutorials-d70da5e732149071f715e080407aa5c74e3da44a.tar.bz2 scilab-tutorials-d70da5e732149071f715e080407aa5c74e3da44a.zip |
Problems_updated
Diffstat (limited to 'Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce')
-rw-r--r-- | Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce b/Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce index f16018c..5494863 100644 --- a/Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce +++ b/Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce @@ -1,4 +1,4 @@ -//This script demonstrate plotting in Scilab +//This script demonstrate basic plot command in Scilab clear clc @@ -6,15 +6,11 @@ clc Data = csvRead('/home/chayan/Documents/scilab-tutorials/Tutorial2_Plot/Data/Tut2_data1.csv'); //Segregate the data into variables -y = Data(:,1); -x1 = Data(:,2); -x2 = Data(:,3); -x3 = Data(:,4); -x4 = Data(:,5); - -//Plotting y versus x1 -plot(y,x1); - +t = Data(:,1); +x = Data(:,2); +//Plotting x versus t +plot(t,x); +xtitle('A x versus t plot','Time','Data') |