Any time I try to use the spline function previously running code gives the error message Attempt to execute SCRIPT spparms as a function: /Applicati​ons/MATLAB​_R2020a.ap​p/tool

2 ビュー (過去 30 日間)
Even if I try to run the example code from the Matlab help file I get this error. This ran fine previously. Thanks for any help.
Attempt to execute SCRIPT spparms as a function:
/Applications/MATLAB_R2020a.app/toolbox/matlab/sparfun/spparms.m
  1 件のコメント
Jerre Hill
Jerre Hill 2022 年 3 月 20 日
switching to the built-in function makima runs fine. Something changed with the spline function.

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

回答 (1 件)

Kumar Pallav
Kumar Pallav 2022 年 3 月 24 日
Hi,the error message may be due to following possible cause:
There is a user-defined function (.m file) that conflicts with a built-in MATLAB function.
For example, a user-defined function in a file named "spparms.m" would conflict with the built-in MATLAB function "spparms".
To resolve this issue, rename the user-defined function so it does not conflict with the built-in MATLAB function.
To determine the location of the function, open MATLAB and run the following command:
>> which -all <function name>%spparms
For more information about declaring functions, please see the following documentation:
Hope it helps!

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by