help-octave
[Top][All Lists]
Advanced

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

How do I paste code at the Octave prompt?


From: Keith Goodman
Subject: How do I paste code at the Octave prompt?
Date: Wed, 15 Mar 2006 16:26:49 -0800

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
-------------------------------------------------------------



reply via email to

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