Mercurial > hg > octave-lyh
diff scripts/plot/loglogerr.m @ 10595:46c8ecc4d565
Add demos to loglogerr.m, semilogxerr.m, & semilogyerr.m
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 30 Apr 2010 19:08:55 -0400 |
parents | 16f53d29049f |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/plot/loglogerr.m +++ b/scripts/plot/loglogerr.m @@ -60,3 +60,12 @@ end_unwind_protect endfunction + +%!demo +%! x = exp (log(0.01):0.2:log(10)); +%! y = wblpdf (x, 3, 2); +%! eyu = 2*rand (size (y)) .* y; +%! eyl = 0.5*rand (size (y)) .* y; +%! loglogerr (x, y, eyl, eyu, "#~x-") +%! xlim (x([1, end])) +