Advertisement
Guest User

Q4

a guest
May 24th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function plotSeriesTrend(mu, sigma, y, coeffs)
  2. derp(1) = polyval(coeffs, 1);
  3. derp(2) = polyval(coeffs, length(y));
  4. plot(1:1:length(y), y, ':b');
  5. hold on;
  6. plot([1,length(y)], derp, ':c');
  7. hold on;
  8.  
  9. pootis = sprintf('Simulated time series: n = %d, mu = %f, sigma = %f', length(y), mu, sigma);
  10. title(pootis);
  11.  
  12.  
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement