need to add excel data in this code.example in excel source data added s array , target add t array and rating add weight to get graph and matrix .its change month by month .firstly added 11.10 AFTER THEN it will be show graph and matrix after then new graph for 12.10 its month and year .
add for loop in matlab for excel huge date
1 view (last 30 days)
Show older comments
s = [2 10 10 113 119 119 54 119 119 168 271 271 271 271 271 474 37 54 113 37 168 10 168 99 10 1632 37 1127 10 1127 2 113 4 2 1 1632 2 2 1 505 121 ];
t = [402 970 271 54 2 54 119 471 271 74 2 54 113 119 471 37 474 37 37 113 10 168 439 10 99 37 1632 113 2 2 1127 4 113 168 113 2 10 1632 2 121 505 ];
weights = [1 8 8 4 8 5 5 9 8 1 8 7 7 8 1 1 1 5 2 5 2 2 1 2 2 2 1 1 8 1 1 5 3 9 2 3 3 2 1 1 1 ];
G = digraph(s,t,weights,1632)
plot(G)
full(adjacency(G))
3 Comments
Walter Roberson
on 3 Mar 2018
How does this differ from your earlier question https://www.mathworks.com/matlabcentral/answers/386027-add-for-loop-in-matlab-code
Answers (0)
See Also
Categories
Find more on Time Series Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!