-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindian_railways_data.m
37 lines (29 loc) · 1.21 KB
/
indian_railways_data.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
clear all
clc
power = readtable("/Users/udit/Desktop/mbta/mbta matlab codes June 2017/irn_power.csv");
grid.index =table2array(power(:,1));
grid.id = table2cell(power(:,2));
grid.line = table2cell(power(:,3));
clear power;
natural = readtable("/Users/udit/Desktop/mbta/mbta matlab codes June 2017/irn_tsunami.csv");
tsunami.index =table2array(natural(:,1));
tsunami.id = table2cell(natural(:,2));
tsunami.line = table2cell(natural(:,3));
clear natural;
target = readtable("/Users/udit/Desktop/mbta/mbta matlab codes June 2017/irn_cyber.csv");
cyber.index =table2array(target(:,1));
cyber.id = table2cell(target(:,2));
cyber.line = table2cell(target(:,3));
clear target;
adj_IRN = csvread("/Users/udit/Desktop/mbta/mbta matlab codes June 2017/adjacencyindianrailways.csv");
adj_IRN_weighted = csvread("/Users/udit/Desktop/mbta/mbta matlab codes June 2017/weightedadjacencyirn.csv");
stations = readtable("datawithlatlong.csv");
nodes_irn.index =table2array(stations(:,1));
nodes_irn.id = table2array(stations(:,2));
nodes_irn.lat = table2array(stations(:,3));
nodes_irn.lon = table2array(stations(:,4));
clear stations
save("/Users/udit/Desktop/mbta/mbta matlab codes June 2017/Indian_datafiles");
clear filename
%clear all
close all