reducing timeseries dataset for later on linear interpolation
David Chèze
david.cheze at cea.fr
Thu May 31 09:24:54 CEST 2012
Hi,
I've done it that way:
dat=[0 0 1 3 2 2 0 0 0 0 2 4 2 4 4 2 0 0 0 0];
plot2d(dat)
datp=diff(dat);
datp_1=[datp(1) datp(1:$-1)];
k=find(datp<>datp_1)
datr=dat(k);
plot2d(k,datr)
i should have add the first point of dat in datr to have exactly the same
curve but it works.
Is there a more direct and efficient way to do that in Scilab?
Thanks for your comment,
David
--
View this message in context: http://mailinglists.scilab.org/reducing-timeseries-dataset-for-later-on-linear-interpolation-tp4022470p4024263.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list