[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
matlab octave matrices
From: |
John W. Eaton |
Subject: |
matlab octave matrices |
Date: |
Thu, 29 Mar 2007 10:26:51 -0400 |
On 28-Mar-2007, skenny wrote:
|
| 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
That's a strange error for an Octave function. Is your "deal" from
Octave? What version of Octave are you using?
| 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??
This syntax works in recent 2.9.x versions of Octave, which should
also have a working deal function.
jwe