看来我的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 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');
我试过imshow:
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 basicImageDisplay (line 24)
hh = image(cdata, ...
Error in imshow (line 266)
hh = basicImageDisplay(fig_handle,ax_handle,...
我正在使用win-64bit,MatLab R2013b现在看来这个问题已经发生好几次了,可以在我重新安装Matlab后解决。