??? Undefined function or method 'eq' for input arguments of type 'cell'

  • Follow


When I write the m file as below :

for i=size(name,1)
    for j=size(bravo,1)
    if name(2:i,1)==bravo(1:j,1);
        ans==databv(j-4,:);
    end
    end
end

it shows ??? Undefined function or method 'eq' for input arguments of type 'cell'
actually, i think the file in the name and bravo workspace is string or the text, what should i correct?
i've tried the function of 

for i=size(name,1)
    for j=size(bravo,1)
     if strcmp(name(2:i,1),strcmp(bravo(1:j,1)))==1
         ans==databv(j-4,:);
     end
    end
end

and the result is 

??? Error using ==> strcmp
Not enough input arguments.

what should i do?
please help !!!
0
Reply nooknickgigga 4/10/2010 1:59:23 PM


0 Replies
3198 Views

(page loaded in 0.001 seconds)

Similiar Articles:













7/19/2012 5:07:05 PM


Reply: