help-octave
[Top][All Lists]
Advanced

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

data type


From: John W. Eaton
Subject: data type
Date: Thu, 4 Jun 2009 15:32:50 -0400

On  4-Jun-2009, address@hidden wrote:

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

That looks like a Matlab error message.  Are you using Matlab or
Octave?

jwe



reply via email to

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