I have this error: ''Execution of script plot as a function is not supported: C:\Users\Jonathan e Leonardo\Documents\MATLAB\plot.m''
134 views (last 30 days)
Show older comments
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
Steven Lord
on 24 Jan 2022
@JONATHAN LAZZARESCHI If the answer from @Alagu Sankar Esakkiappan resolved the problem please indicate that by accepting that answer. Thanks.
Answers (1)
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!