필터 지우기
필터 지우기

How to solve error: Undefined function 'SGY_Function' for input arguments of type 'Solution'

조회 수: 1 (최근 30일)
I am using Matlab R2021b with Cantera
I made sure the function is in the correct directory as the m file
Any help is appreciated. Thanks.
  댓글 수: 2
Keerthana Ramesh
Keerthana Ramesh 2022년 8월 18일
Hi,
Please try the following workarounds:
  • If you are having problems with your MATLAB search path, run the following MATLAB commands and then restart MATLAB:
>> restoredefaultpath % This will remove any custom paths
>> rehash toolboxcache
>> savepath
  • Another possible workaround could be by running the following command in the command line:
>> addpath(<new directory>)
The "addpath" command simply adds an extra folder to the pre-existing path default MATLAB path. Then exiting and restarting MATLAB should resolve this issue, by doing so the default MATLAB path is restored if "savepath" is not called.
Thanks,
Keerthana
KSSV
KSSV 2022년 8월 18일
@Ismaeel Dasti your function is present in the current directory. It looks like your input to the function is not correct. You have to check the input arguments to the function. Read the help part of the function.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by