Borrar filtros
Borrar filtros

Can I use minspantree in 2014a?

1 visualización (últimos 30 días)
Dhanushka Sandaruwan
Dhanushka Sandaruwan el 19 de Mayo de 2018
Respondida: Walter Roberson el 19 de Mayo de 2018
Dear all, I'm trying to use minspantree to create a minimum spanning tree for a graph. This is the code;
s = [1 1 1 2 5 3 6 4 7 8 8 8];
t = [2 3 4 5 3 6 4 7 2 6 7 5];
weights = [100 10 10 10 10 20 10 30 50 10 70 10];
G = graph(s,t,weights);
p = plot(G,'EdgeLabel',G.Edges.Weight);
[T,pred] = minspantree(G);
highlight(p,T)
Can I use this code with Matlab 2014a?

Respuesta aceptada

Walter Roberson
Walter Roberson el 19 de Mayo de 2018
No, that routine was added in R2015b.
You can look in the File Exchange for spanning tree contributions.

Más respuestas (0)

Categorías

Más información sobre Networks en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by