From bug-octave-request at bevo dot che dot wisc dot edu Tue Jan 28 00:16:02 2003 Subject: Re: Modulo operator? From: Mirek Kwasniak To: Roy Stehlik Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 28 Jan 2003 07:15:34 +0100 On Mon, Jan 27, 2003 at 06:37:53PM -0600, Roy Stehlik wrote: > Octave doesn't appear to me to have a modulo operator, similar to > Matlab's mod(n,N) function. > > Is this true? It was true:) $ octave2.1 GNU Octave, version 2.1.43 (i386-pc-linux-gnu). octave2.1:1> mod usage: r = mod (x, y) error: evaluating if command near line 43, column 3 error: called from `mod' in file /usr/share/octave/2.1.43/m/general/mod.m' Mirek ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------