I have this error: ''Execution of script plot as a function is not supported: C:\Users\Jonathan e Leonardo\D​ocuments\M​ATLAB\plot​.m''

134 views (last 30 days)
JONATHAN LAZZARESCHI
JONATHAN LAZZARESCHI on 21 Jan 2022
Commented: Steven Lord on 24 Jan 2022
I have this error: ''Execution of script plot as a function is not supported:
C:\Users\Jonathan e Leonardo\Documents\MATLAB\plot.m''
How can I resolve it?
  3 Comments

Sign in to comment.

Answers (1)

Alagu Sankar Esakkiappan
Alagu Sankar Esakkiappan on 24 Jan 2022
Hi Jonathan,
Aforementioned error occurs as plot is already an internal implemented function in MATLAB. You may check if there is any internal implementation already done for any specific function using which commmand:
which plot -all
This problem can be resolved by using a different filename for the current script, which is not already used for any other internal function in MATALB.

Community Treasure Hunt

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

Start Hunting!

Translated by