Remove trends from a time-series AO


Remove trend from a data series

	pl = plist('tsfcn','2*sin(2*pi*1.7*t)+randn(size(t))','fs',10,'nsecs',10,'yunits','V');
	x  = ao(pl);
	pl_trend = plist('tsfcn','t.^2','fs', 10,'nsecs',10);
	trend = ao(pl_trend);
	fcn_trend = x+trend;
	pl_detr = plist('N',2);
	detr = detrend(fcn_trend,pl_detr);
	iplot(x,fcn_trend,detr);

  
Detrend




©LTP Team