From: nooknickgigga korbenjawan on 10 Apr 2010 09:59 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 !!!
|
Pages: 1 Prev: How can I make this Matlab program possible? Next: jumping to output directly |