Input argument undefined - MATLAB function/subfunction

后端 未结 2 628
礼貌的吻别
礼貌的吻别 2021-01-24 15:49

I am testing a part of a function for my work in MATLAB. I have defined a function and subfunction as follows(just for testing):

function funct
clear all;
clc;
I         


        
2条回答
  •  花落未央
    2021-01-24 16:22

    I don't have the image processing toolbox, so I can't check this myself, but it looks like nlfilter expects a function of just one argument. Try changing the call to nlfilter like this:

    A = nlfilter(I, [7 7], @(x) dirvar(x,ld));
    

提交回复
热议问题