MATLAB executes shadowed function (instead of my own version)

조회 수: 4 (최근 30일)
Julian Tomsik
Julian Tomsik 2019년 11월 22일
댓글: Rik 2020년 11월 13일
Hey,
I want to implement a few loading features when opening a specific .MAT file my double clicking it.
Therefore I copied the uiimport() function from the matlab root and added some test output. But when calling the function with uiimport('C:\...file.mat'), MATLAB still uses the "old" shadowed function. The step-by-step debugging is also using the "old" file's line numbers but shows my edited version of the function... Pretty strange!
Is this expected behaviour? Thanks in advance.
"which -all uiimport" shows this:
C:\mypath\uiimport.m
C:\Program Files\MATLAB\R2016b\toolbox\matlab\codetools\uiimport.m % Shadowed
  댓글 수: 5
Stephen23
Stephen23 2020년 11월 13일
@Sinan Islam: you can have multiple functions of the same name:
Rik
Rik 2020년 11월 13일
This discussion is probably relevant to this topic.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by