nodes = [];
for i = 1:1:size(matrix,1)
if matrix(i,4) <= 10000
nodes = [nodes,matrix(i,1:2)];
end
end
nodes_cellarray{:} = nodes;
set(figure, 'Visible', 'on');
Graph = graph(matrix(:,1),matrix(:,2));
plot_array = plot(Graph, 'layout', 'auto');
highlight(plot_array,nodes_cellarray{:},'EdgeColor','r','NodeColor','r','LineWidth',4);
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/498570-how-to-convert-the-graph-below-in-to-heatmap#comment_782264
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/498570-how-to-convert-the-graph-below-in-to-heatmap#comment_782264
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/498570-how-to-convert-the-graph-below-in-to-heatmap#comment_782734
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/498570-how-to-convert-the-graph-below-in-to-heatmap#comment_782734
Sign in to comment.