The right way to create a user function inside a GUIDE

A
Amoli · Jul 31, 2020 · 2K views
Question
The gui have an axes and a table, the ideal is when the user changed some shared data, then both the axes and table are need to be updated. How can I add a self-defined function inside this gui to update both axes and table? I tried something like this, but the M file IDE tells that "nesting too deep"   function updatedAxes() if dataChanged %update axes %update table else %something else end end
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 21, 2026

Find Solution: delete the 'end' which paired with your 'function'

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!