[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Error: subscript indices must be either positive integers

**From**: |
Jordi Gutiérrez Hermoso |

**Subject**: |
Re: Error: subscript indices must be either positive integers |

**Date**: |
Sun, 25 Nov 2012 13:47:36 -0500 |

On 25 November 2012 09:11, Vesnog <address@hidden> wrote:
>* "S0m*omega(vz*sin(phi0) - vy*cos(phi0))*dt"*
Since omega is a variable, omega(whatever) attempts to index this
variable. Every Octave variable can be indexed, since every Octave
variable can be an array. Scalars are just 1x1 arrays.
Do omega*(whatever) instead.
- Jordi G. H.