Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
after running the code,I reached to the following error :

??? Error using ==> reshape
To RESHAPE the number of elements must not change.

Error in ==> colfilt at 149
b = reshape(feval(fun,x,params{:}), size(a));

Error in ==> test2 at 89
x1=uint8(colfilt(x1,[2,2],'sliding',@fedge1))
I defined the function fedge as follows:

function [ uu ] = fedge1( P11,P21,P31,P41 )

kk=readfis('fis.fis')
t=kk.input

P11=double(t(1).name)
P21=double(t(2).name)
P31=double(t(3).name)
P41=double(t(4).name)
P=[P11;P21;P31;P41]
uu=evalfis(P(:,2),kk)

end
Posted

1 solution

SQL
I guess that I have some problem in correct defining of
function handle for the command ' colfilt '.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900