Undefined function 'copy' for input arguments of type 'double'.

7 ビュー (過去 30 日間)
Frank
Frank 2023 年 8 月 30 日
コメント済み: Frank 2023 年 9 月 14 日
hello! everyone. I had met a strange question. when I opened 'Performance Advisor' in simulink,The Diagnostic Viewer told me that ,'
Undefined function 'copy' for input arguments of type 'double'.' And I tried to find function 'copy' path.There are too many named 'copy.m' in the matlab root path. And I commanded 'which copy',It answered ' copy is a built-in method % schema.package method'.
what's more,I reinstalled matlab, It didn't work. How can I resolve the problem? thks.

採用された回答

Atharva
Atharva 2023 年 9 月 12 日
編集済み: Atharva 2023 年 9 月 12 日
Hi Frank,
I understand that you are facing the error 'Undefined function 'copy' for input arguments of type 'double''.
The following workarounds will help you in resolving this issue-
  1. At first please double-check the output of:
>> which -all copy
and check if any overloaded function is showing up. If yes, move this function aside the search path or use:
>> restoredefaultpath
>> rehash toolboxcache
>> savepath
2.If this is not the case/does not help, It could be that the Model Advisor Cache is corrupt and this causes it. To resolve it, please simply run:
>> Advisor.Manager.refresh_customizations()
I hope this helps!
  1 件のコメント
Frank
Frank 2023 年 9 月 14 日
Hi Atharva,
I remove all overloaded functions named 'copy.m' from the search path. And it does work!
Thank you very much! you are so kind man!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaming Conventions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by