Problem with using many functions

조회 수: 4 (최근 30일)
ld zhu
ld zhu 2020년 2월 26일
댓글: ld zhu 2020년 3월 5일
There are many functions that I cannot use, it always shows the same error:
It's 2019b version. I cannot find way to solve this bug. Thank you if you have some advice.
"Attempt to execute SCRIPT mrdivide as a function:
C:\Program Files\MATLAB\R2019b_x64\toolbox\matlab\ops\mrdivide.m"
  댓글 수: 2
Sindar
Sindar 2020년 2월 26일
Can you include some sample code?
ld zhu
ld zhu 2020년 3월 5일
Thank you , the problem has been solved.

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

채택된 답변

Sahithi Metpalli
Sahithi Metpalli 2020년 3월 3일
Hi,
The above problems occur when
1.There exists a script file and function with same name. The script appears before the function in the MATLAB path causing the error.
2.You are attempting to call a script file by passing arguments to it similar to function.
To resolve the error, you could try one of the following:
  • Rename Script file
  • Change the current folder
  댓글 수: 1
ld zhu
ld zhu 2020년 3월 5일
Thank you, the problem has been solved.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by