help-octave
[Top][All Lists]
Advanced

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

decoding error message


From: John W. Eaton
Subject: decoding error message
Date: Fri, 30 Nov 2007 01:25:35 -0500

On 29-Nov-2007, asha g wrote:

| 
| Please help with the following section of code in a
| larger function file :
| 
| for iii = 2:(N-1)
| S(iii) = V1(iii) + (deltat*(P(iii)));
| end 
| 
| I get the following error message :
| 
| error: invalid vector index = 2
| error: evaluating argument list element number 1
| error: evaluating for command near line 46, column 1
| error: called from `timedepaxoct' in file
| `/home/ashag/work/ashag/aseasha/timedepaxoct.m'
| error: evaluating for command near line 61, column 1
| error: near line 89 of file
| `/home/ashag/work/ashag/aseasha/axactoct.m
| 
| If I write for iii = 1: N-1
| 
| I get :
| 
| error: binary operator `*' not implemented for
| `scalar' by `cell' operations
| error: evaluating binary operator `*' near line 47,
| column 25
| error: evaluating binary operator `+' near line 47,
| column 17
| error: evaluating assignment expression near line 47,
| column 8
| error: evaluating for command near line 46, column 1
| error: called from `timedepaxoct' in file
| `/home/ashag/work/ashag/aseasha/timedepaxoct.m'
| error: evaluating for command near line 61, column 1
| error: near line 89 of file
| `/home/ashag/work/ashag/aseasha/axactoct.m'

I don't think anyone can say for sure what is happening without
knowing what values are stored in your S, V1, deltat and P variables.

jwe


reply via email to

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