0

看来我的 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后可以解决。

4

0 回答 0