Using GUIDE - Callback to set of equations through multiple Objects
조회 수: 1 (최근 30일)
이전 댓글 표시
I've developed a GUI in GUIDE that at various points along a data analysis I need to access a set of equations [a set of calculations including inbuilt functions]. Thus far, I have just copied those equations into each Object Callback, and this works ok, but I want to be able to update the equations as I develop the GUI, so would like to store them somewhere to be accessed with updated versions of the input data.
For example a calculation is done by a button push, and then later a slider edits values present in those calculations so runs the same equations just in a different place. But it would make sense just to use one set of equations.
Summary: How can I access a set of equations (functions) in a GUI through multiple callbacks
Probably a simple solution I'm just not sure where to look.
댓글 수: 0
채택된 답변
Image Analyst
2015년 4월 16일
Yes, it's simple. You just write a function and call that same function from all your different callback functions. You can pass the new data in through the input argument list of the function you wrote.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!