summaryrefslogtreecommitdiff
path: root/Tutorial2_Plot/Scilab_code/Tutotial2_plotting.sce
blob: b191b8057b33ca4d5a7aefbe3b9e014a45a660a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//This script demonstrate plotting in Scilab
clear 
clc

//Import data from file
Data = csvRead('/home/chayan/Documents/scilab-tutorials/Tutorial2/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);