help-octave
[Top][All Lists]
Advanced

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

Re: Prompt line number


From: James Sherman Jr.
Subject: Re: Prompt line number
Date: Tue, 6 Dec 2011 16:44:37 -0500

On Tue, Dec 6, 2011 at 4:36 PM, vlad777 <address@hidden> wrote:
I guess my main question is:

How do I manipulate objects in memory created on previous lines?

(BTW many thanks for replies)

--
Think of it as writing code one line at a time:
octave-3.2.4.exe:1> a = 5
a =  5
octave-3.2.4.exe:2> b = a^2
b =  25

Note that as you want to code anything substantial, you'll want to put all the lines you want to execute in a script in a file, say foo.m with the lines in foo.m:

a = 5;
b = a^2;

Then when you type "foo", it will execute those lines just like you had typed them in.

Hope this helps.

reply via email to

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