Live Tex Variable Updates the Whole Script Despite Run Option Set to "Current Section"
Ältere Kommentare anzeigen
I've attached a live tex (challenge1) which finds the shortest path of a dag.
In my Bellman-ford function, I tried to use a slider control to vary the source node (s in the script) for the bellman-ford algorithm so that I could trace the shortest path from the source to the root using the highlight function.
My problem: everytime I update s, the whole script updates as well. I would like to use the randomly generated digraph I have and update only the source node.
I already set the "Run" settings to "current section" and "current section to end," but it still updates everything, generating a new digraph in the process. What am I missing?
I've attached my code for your review.
Thank you!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Live Scripts and Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
