error message - plot function

6 vues (au cours des 30 derniers jours)
Maelig Chauvel
Maelig Chauvel le 25 Jan 2018
Commenté : anas le 15 Déc 2023
This message arrives when I open Matlab : ' Warning: Function plot has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.'
Indeed, my plot function is not working anymore. What can I do ?

Réponse acceptée

Srikanth Sedimbi
Srikanth Sedimbi le 31 Jan 2018
plot is a built-in MATLAB function. You should be having another function in your workspace with the same name, which is shadowing the built-in plot function.
Execute the following command in MATLAB command window
which -all plot
If you see the last line similar to the one shown below, then your built-in plot function is shadowed
built-in (C:\Program Files\MATLAB\R2017b\toolbox\matlab\graph2d\plot) % Shadowed
Go to the first line of the output, it shows the local function or variable named as 'plot' which is shadowing the built-in.
Clear the variable or delete the shadowing file and this should resolve the issue
  1 commentaire
anas
anas le 15 Déc 2023
Thank you very very very a lot bro

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by