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: Judd Storrs
Subject: Re: Placing 'end' (index) in a variable
Date: Tue, 27 Apr 2010 16:20:08 -0400

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


--judd


reply via email to

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