help-octave
[Top][All Lists]
Advanced

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

Re: Placing 'end' (index) in a variable


From: Carnë Draug
Subject: Re: Placing 'end' (index) in a variable
Date: Tue, 27 Apr 2010 17:34:50 -0400

2010/4/27 Judd Storrs <address@hidden>
Here's another idea. Expressions using end seem to work inside index
expressions. So something like this may work:

start = 1
if (interval)
 final = input;
else
 final = inf;
endif
plot( timestamps(start:min(final,end)), data(start:min(final,end)) );


Thank you very much. I tried this and works fine. I think I never learned so much as in the last 3 months that I started using octave. Thank you all,

Carnë

reply via email to

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