Errors when using "close" or "close all"
13 次查看(过去 30 天)
显示 更早的评论
I have 2015a. Never had problems with "close" or "close all" in the last two decades. What gives? I had 20 figures open from a plotting function. I turned off tiling, just let them plot naturally one on top of another. Still no joy. Completely baffled at this "new" behavior. Output is listed below.
>> close all
Error using unique
Too many input arguments.
Error in ismemberCismemberClassTypes (line 376)
[uA,~,icA] = unique(a(:),'sorted');
Error in ismemberRismemberR2012a (line 165)
lia = ismemberClassTypes(a,b);
Error in ismember (line 57)
lia = ismemberR2012a(A,B);
Error in setdiffRsetdiffR2012a (line 193)
logUA = ~(ismember(a,b));
Error in setdiff (line 83)
[varargout{1:nlhs}] = setdiffR2012a(varargin{:});
Error in close>safegetchildren (line 338)
Error in close (line 132)
0 个评论
回答(2 个)
Steven Lord
2015-9-10
What does this command show? If it shows unique.m functions other than those included in MathWorks products, remove the directories containing them from the MATLAB path, rename them, or remove them.
which -all unique
Shuangjun
2018-5-6
编辑:Walter Roberson
2018-5-6
I also get an error when call close all. I ran unique check and everything files are from matlab toolbox folder.
>> which -all unique
E:\Program Files\MATLAB\R2017a\toolbox\matlab\ops\unique.p
E:\Program Files\MATLAB\R2017a\toolbox\matlab\ops\@cell\unique.p % cell method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\ops\@cell\unique.m % cell method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\datatypes\@tabular\unique.m % tabular method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\datatypes\@categorical\unique.m % categorical method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\timefun\@duration\unique.m % duration method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\timefun\@datetime\unique.m % datetime method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\bigdata\@tall\unique.m % tall method
E:\Program Files\MATLAB\R2017a\toolbox\rtw\rtw\@RTW\unique.p % RTW method
E:\Program Files\MATLAB\R2017a\toolbox\distcomp\parallel\@distributed\unique.m % distributed method
E:\Program Files\MATLAB\R2017a\toolbox\distcomp\gpu\@gpuArray\unique.m % gpuArray method
E:\Program Files\MATLAB\R2017a\toolbox\mbc\mbc\@xregpointer\unique.m % xregpointer method
E:\Program Files\MATLAB\R2017a\toolbox\mbc\mbc\@guidarray\unique.m % guidarray method
E:\Program Files\MATLAB\R2017a\toolbox\shared\statslib\@dataset\unique.m % dataset method
E:\Program Files\MATLAB\R2017a\toolbox\symbolic\symbolic\@sym\unique.m % sym method
E:\Program Files\MATLAB\R2017a\toolbox\matlab\ops\unique.m
Can you help in this?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!