help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

data type


From: serosole
Subject: data type
Date: Thu, 4 Jun 2009 19:17:30 +0000 (GMT)

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);




      




reply via email to

[Prev in Thread] Current Thread [Next in Thread]