필터 지우기
필터 지우기

The right way to create a user function inside a GUIDE

조회 수: 5 (최근 30일)
Pengfei Wang
Pengfei Wang 2020년 7월 29일
답변: Pengfei Wang 2020년 7월 30일
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
Pengfei Wang
Pengfei Wang 2020년 7월 30일
Great, This is exact same error in my code.
Just delete the 'end' which paired with your 'function'.
Thanks a lot.

댓글을 달려면 로그인하십시오.

채택된 답변

Pengfei Wang
Pengfei Wang 2020년 7월 30일
Find Solution: delete the 'end' which paired with your 'function'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by