summaryrefslogtreecommitdiff
path: root/Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce
diff options
context:
space:
mode:
authorChayan Bhawal2018-10-02 10:19:33 +0530
committerChayan Bhawal2018-10-02 10:19:33 +0530
commit3d0c890de4ac7d9afd576e889bd2624437d79c70 (patch)
tree10bf164ddb34ffcc5c4b059e2968990b4e472d2f /Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce
parent6d39446c434cfcca02ae7a4551e2d66edf9def7f (diff)
downloadscilab-tutorials-3d0c890de4ac7d9afd576e889bd2624437d79c70.tar.gz
scilab-tutorials-3d0c890de4ac7d9afd576e889bd2624437d79c70.tar.bz2
scilab-tutorials-3d0c890de4ac7d9afd576e889bd2624437d79c70.zip
Renamed_files_relative_path
Diffstat (limited to 'Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce')
-rw-r--r--Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce b/Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce
new file mode 100644
index 0000000..a8c6b64
--- /dev/null
+++ b/Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce
@@ -0,0 +1,16 @@
+//This script demonstrate basic plot command in Scilab
+clear
+clc
+
+//Import data from file
+Data = csvRead('../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')
+