help-octave
[Top][All Lists]
Advanced

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

matlab octave matrices


From: skenny
Subject: matlab octave matrices
Date: Wed, 28 Mar 2007 14:59:42 -0700 (PDT)

hi,

i'm very new to octave and am trying to convert some code from matlab into
octave. i am getting this error:

octave:5> INCAMrunScript
warning: in CutSpikeTrains.m near line 20, column 12:
warning: implicit conversion from matrix to string
warning: implicit conversion from matrix to string
error: MATLAB:deal:narginNargoutMismatch
error: evaluating if command near line 41, column 3
error: evaluating if command near line 38, column 1
error: called from `deal' in file `deal.m'
error: evaluating assignment expression near line 34, column 15

deal is called like this:

[Tos{1:N-1}] = deal(TT{setdiff(1:N,nr)});

this works in matlab but not in octave and i believe it has to do with how
the matrix being passed is formatted; but i'm not sure...was wondering if
someone might have some insight??

also, when i print out TT in octave i get this:

TT******
{
  [1,1] =

     0.0078000
     0.2060000
     0.3154000
     0.5117000
     0.7118000
     0.8967000
...

 [1,2] =

     0.0034000
     0.3063000
     0.5064000
     0.7085000
    ...

[1,3] =

     0.024100
     0.127000
     0.232500
     0.318400
     0.423200
    ...

whereas in matlab i get this:

TT******
    [257x1 double]    [143x1 double]    [401x1 double]

 
any help is greatly appreciated
thanks!

-- 
View this message in context: 
http://www.nabble.com/matlab-octave-matrices-tf3482865.html#a9722272
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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