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 件のコメント

Walter Roberson
Walter Roberson 2023 年 2 月 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 ExchangeStartup 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