Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Matlab中的imagesc和imshow bug,太奇怪了_Image_Matlab - Fatal编程技术网

Matlab中的imagesc和imshow bug,太奇怪了

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

看来我的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');
 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
的文件隐藏了内置函数?