Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plotSeriesTrend(mu, sigma, y, coeffs)
- n=length(y);
- endPointX = [polyval(coeffs, 1), polyval(coeffs, n)];
- plot(1:1:n, y, '.')
- hold on
- plot([1,n], endPointX, 'r-.')
- hold on
- axisTitle = sprintf('Simulated series and linear trend: [mu,sigma,n] = [%f, %f, %d]', mu, sigma, n);
- title(axisTitle);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement