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. "
2 次查看(过去 30 天)
显示 更早的评论
I am using MATLAB R2015A on Windows 10. any idea?
0 个评论
回答(1 个)
Stephen23
2015-3-21
编辑:Stephen23
2015-3-21
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!