Error in code by Ken Deeley on "Exploring risk contagion using graph theory and Markov chains"
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kings-D
el 1 de Nov. de 2018
Comentada: Kings-D
el 1 de Nov. de 2018
Hi, am running this code by Ken Deeley on "Exploring risk contagion using graph theory and Markov chains" but am encountering this error "Undefined function or variable 'graph'. Error in RiskContagion (line 105) G = graph(sectorDist, sectors);"!
Please anyone can help? Thank you.
0 comentarios
Respuesta aceptada
madhan ravi
el 1 de Nov. de 2018
It’s better you contact the author of the code and clarify by the way matlab has an inbuilt function function . Type graph in your command window if nothing shows up , contact MathWorks Support team by clicking the Contact Us button on the top right corner of this page.
2 comentarios
madhan ravi
el 1 de Nov. de 2018
Anytime :) , if it was useful make sure to accept the answer so that people know the question is solved
Más respuestas (1)
Walter Roberson
el 1 de Nov. de 2018
That code was written for R2016a and relies upon graph() which was new as of R2015b. You are using an earlier MATLAB.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!