function not working with updateSystem for a slider in a GUI
Show older comments
I'm having trouble getting a slider to work for my GUI (without guide). Everything works until:
b.Callback = @(es,ed) updateSystem(s,ode15s(dis(es.Value,co)),[0 10],co);
Where dis is a function with inputs cp and co that is run through ode15s.
[t,x] = ode15s(@dis,[0,10],co); works for the original graph, but I'm not sure how to fit it into the callback so that it works with updateSystem and cp changes with es.Value. Any suggestions would be greatly appreciated!
Thanks, Ross
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements 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!