Warnings in Command Window

15 次查看(过去 30 天)
When I started MATLAB and saw the messages below.
I have tried to uninstall and re-install MATLAB, but those warnings are still here. I'm using a MacBook Pro. I also have a R2020b MATLAB installed in my laptop because I need both versions of MATLAB. I'm not if that's causing the problem.
"Warning: Function contains has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function endsWith has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isfile has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isfolder has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function startsWith has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function iscolumn has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function ismatrix has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isrow has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isequaln has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function narginchk has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isfile has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function isfolder has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function contains has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function endsWith has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function newline has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.
Warning: Function startsWith has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict. "
  2 个评论
Walter Roberson
Walter Roberson 2022-7-21
please show the output of
which -all contains
Stella
Stella 2022-7-21
>> which -all contains
built-in (/Applications/MATLAB_R2022a.app/toolbox/matlab/strfun/contains)
/Users/stella/Documents/MATLAB/Add-Ons/Collections/FieldTrip/compat/octave/contains.m % Shadowed
/Users/stella/Documents/MATLAB/Add-Ons/Collections/FieldTrip/compat/matlablt2016b/contains.m % Shadowed
contains is a built-in method % string method
contains is a Java method % java.util.ArrayList method
contains is a Java method % java.util.AbstractList method
contains is a Java method % java.util.AbstractCollection method
contains is a Java method % java.util.Collection method
contains is a Java method % java.util.List method
contains is a Java method % java.lang.String method
/Applications/MATLAB_R2022a.app/toolbox/matlab/bigdata/@tall/contains.m % tall method

请先登录,再进行评论。

采纳的回答

Stephen23
Stephen23 2022-7-21
编辑:Stephen23 2022-7-21
"I'm not if that's causing the problem."
The problem is that you have added many subfolders to the MATLAB search path, that should not be there.
To fix those warnings, remove all FieldTrip folders from the MATLAB search path, e.g. by calling
restoredefaultpath
Note that the FieldTrip documentation explicitly states "In general you should not add FieldTrip with all subdirectories to your path... there are some functions for backward compatibility in fieldtrip/compat, which should only be added to your path in case you use the corresponding old MATLAB release" and then it procedes to explain exactly which toolbox folder needs to be added to the MATLAB search path. Note: folder, singular, i..e only one folder.
The FieldTrip documentation also explains how to reset the MATLAB search path and start again.
  1 个评论
Stella
Stella 2022-7-21
I followed your directions and the issue has been resolved. Thank you so much.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by