Filter löschen
Filter löschen

The right way to create a user function inside a GUIDE

5 Ansichten (letzte 30 Tage)
Pengfei Wang
Pengfei Wang am 29 Jul. 2020
Beantwortet: Pengfei Wang am 30 Jul. 2020
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
  2 Kommentare
Pengfei Wang
Pengfei Wang am 30 Jul. 2020
Great, This is exact same error in my code.
Just delete the 'end' which paired with your 'function'.
Thanks a lot.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Pengfei Wang
Pengfei Wang am 30 Jul. 2020
Find Solution: delete the 'end' which paired with your 'function'

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by