From help-request at octave dot org Wed Mar 15 18:38:30 2006 Subject: Re: How do I paste code at the Octave prompt? From: Bill Denney To: Keith Goodman cc: Octave-Help Date: Wed, 15 Mar 2006 19:37:22 -0500 (EST) The problem is that your code includes a tab. The tab starts tab completion. Try changing your editor's preferences so that it inserts 8 spaces instead of a tab. Bill On Wed, 15 Mar 2006, Keith Goodman wrote: > I often evaluate snippets of code by pasting the snippet into the > command window. > > Pasting this works: > > for i = 1:10 > disp(i) > end > > But pasting this doesn't work: > > for i = 1:10 > if i > 4 > disp(i) > end > end > > I get > >>> for i = 1:10 >> if i > 4 >> > Display all 2165 possibilities? (y or n) >> d >> end > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- > -- "Let me play with it first and I'll tell you what it is later." -- Miles Davis ------------------------------------------------------------- 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 -------------------------------------------------------------