function not working with updateSystem for a slider in a GUI
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!