summaryrefslogtreecommitdiff
path: root/Tutorial02-Plots/Scilab_code/Tutorial2_plotting.sce
blob: a8c6b64f183e963f50dabd4685f52a519c0e9f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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')