Info

This question is closed. Reopen it to edit or answer.

How to make my axes in gui update when the parameters are changed by the User?

1 view (last 30 days)
I have created a pushbutton just to Clear all the axes as shown below:
  • % --- Executes on button press in pushbutton13.
  • function pushbutton13_Callback(hObject, eventdata, handles)
  • % hObject handle to pushbutton13 (see GCBO)
  • % eventdata reserved - to be defined in a future version of MATLAB
  • % handles structure with handles and user data (see GUIDATA)
  • arrayfun(@cla,findall(0,'type','axes'))
  • clear;
But the problem is when they are cleared, and then try to choose different parameters, the axes do not show the new plots for the new desired parameters. It would be much prefered if I could know how to make the axes clear themselves automatically if one of the parameters is changed from the user. Any help is appreciated.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!