Matlab中的imagesc和imshow bug,太奇怪了
看来我的imshow和imagesc有问题Matlab中的imagesc和imshow bug,太奇怪了,image,matlab,Image,Matlab,看来我的imshow和imagesc有问题 c = [1, 2; 3, 4]; imagesc(c); 结果: Error using setdiff Too many input arguments. Error in clo (line 49) kids_to_delete = setdiff(findall(obj,'serializable','on','-depth',1),obj,'legacy'); Error
c = [1, 2; 3, 4];
imagesc(c);
结果:
Error using setdiff
Too many input arguments.
Error in clo (line 49)
kids_to_delete = setdiff(findall(obj,'serializable','on','-depth',1),obj,'legacy');
Error in cla (line 29)
clo(ax, extra{:});
Error in newplot>ObserveAxesNextPlot (line 125)
cla(ax, 'reset',hsave);
Error in newplot (line 74)
ax = ObserveAxesNextPlot(ax, hsave);
Error in imagesc (line 19)
hh = image(varargin{1},'CDataMapping','scaled');
Error using setdiff
Too many input arguments.
Error in clo (line 49)
kids_to_delete = setdiff(findall(obj,'serializable','on','-depth',1),obj,'legacy');
Error in cla (line 29)
clo(ax, extra{:});
Error in newplot>ObserveAxesNextPlot (line 125)
cla(ax, 'reset',hsave);
Error in newplot (line 74)
ax = ObserveAxesNextPlot(ax, hsave);
Error in basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 266)
hh = basicImageDisplay(fig_handle,ax_handle,...
当我试图展示时:
c = [1, 2; 3, 4];
imshow(c);
结果:
Error using setdiff
Too many input arguments.
Error in clo (line 49)
kids_to_delete = setdiff(findall(obj,'serializable','on','-depth',1),obj,'legacy');
Error in cla (line 29)
clo(ax, extra{:});
Error in newplot>ObserveAxesNextPlot (line 125)
cla(ax, 'reset',hsave);
Error in newplot (line 74)
ax = ObserveAxesNextPlot(ax, hsave);
Error in imagesc (line 19)
hh = image(varargin{1},'CDataMapping','scaled');
Error using setdiff
Too many input arguments.
Error in clo (line 49)
kids_to_delete = setdiff(findall(obj,'serializable','on','-depth',1),obj,'legacy');
Error in cla (line 29)
clo(ax, extra{:});
Error in newplot>ObserveAxesNextPlot (line 125)
cla(ax, 'reset',hsave);
Error in newplot (line 74)
ax = ObserveAxesNextPlot(ax, hsave);
Error in basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 266)
hh = basicImageDisplay(fig_handle,ax_handle,...
我现在使用的是win-64bit,MatLab R2013b,这个问题似乎发生了好几次,在我重新安装MatLab后可以解决。您是否尝试过关闭所有图形(使用
关闭所有
)?还是重新启动Matlab?@LuisMendo Yep,没有运气。试试哪个setdiff
-在你的Matlab路径上是否有另一个名为setdiff
的文件隐藏了内置函数?