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
I tried it and unfortunately nothing changes it still gives the same error
@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.
Maybe i did i have no idea but now after i reinstalled it, it works fine thank you!

请先登录,再进行评论。

回答(1 个)

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

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by