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 Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by