data type

serosole at yahoo.it serosole at yahoo.it
Thu Jun 4 14:17:30 CDT 2009


Helo,
 using a function I found on line I got this error:

??? Error using ==> minus
Integers can only be combined with integers of the same class, or scalar doubles.

Error in ==> fld at 68
S1 = (data.X(:,inx1)-m1*ones(1,n1))*(data.X(:,inx1)-m1*ones(1,n1))';

Error in ==> myFLD at 61
           model = fld(tr);
 
trying to explain...
 model = fld(tr);

fld wants a struct. So I tried to build a struct:
  tr = struct('X', uint16( mtdata ), 'y', 1);




      




More information about the Help-octave mailing list