I can not use log function in matlab

Hello can someone help understand why matlab doesnt understand what the logarithmic function is ? ( ps : it worked befoer and now suddenly it doesnt)
here is the error it gives me :
"Execution of script log as a function is not supported:
C:\Program Files\MATLAB\R2021b\toolbox\matlab\elfun\log.m"
What should i do ?

댓글 수: 4

try
restoredefaultpath; rehash toolboxcache
Fatiha AZARUAL
Fatiha AZARUAL 2023년 2월 4일
I tried it and unfortunately nothing changes it still gives the same error
John D'Errico
John D'Errico 2023년 2월 4일
@Fatiha AZARUAL - You probably created a script named log.m, and saved it in that directory. That is a terribly bad choice. First, see if you did that. But if you did so, then you may be best served if you reinstall MATLAB.
Fatiha AZARUAL
Fatiha AZARUAL 2023년 2월 4일
Maybe i did i have no idea but now after i reinstalled it, it works fine thank you!

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

답변 (1개)

Walter Roberson
Walter Roberson 2023년 2월 4일

1 개 추천

Your MATLAB installation is corrupted. You need to reinstall it.

댓글 수: 1

Fatiha AZARUAL
Fatiha AZARUAL 2023년 2월 4일
apparently yes i reinstalled it and it works thank you!

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

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2023년 2월 4일

댓글:

2023년 2월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by