How to fix this " Warning: Function j has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. "

Respuestas (1)

Stephen23
Stephen23 el 21 de Mzo. de 2015
Editada: Stephen23 el 21 de Mzo. de 2015
Because i and j are both names of the inbuilt imaginary unit. Don't use these names and you wont get the warning.
You can check if name are already defined by using which. Note that shadowing inbuilt functions is generally a bad idea, unless you really know what you are doing, and is best avoided.

2 comentarios

that warning appears as soon as I open Matlab. i mean without doing anything. I do not know yet what the impacts of it could be , however i remove it each time with two clc
Is this a new MATLAB installation? Do you have a startup function? Have you ever changed the MATLAB search path? Do you use i or j as variable names? Have you installed any third-party functions of toolboxes?
I notice you also posted to the Newsreader:

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 21 de Mzo. de 2015

Editada:

el 21 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by