kakearney-boundedline-pkg-e8224db

所属分类:matlab编程
开发工具:matlab
文件大小:400KB
下载次数:8
上传日期:2016-07-19 11:04:01
上 传 者暖气团
说明:  误差范围/置信区间等MATLAB程序包,内有图片证明Plot line(s) with error bounds/confidence intervals/etc. in Matlab
(Plot line(s) with error bounds/confidence intervals/etc. in Matlab)

文件列表:
kakearney-boundedline-pkg-e8224db (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo.html (3719, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo.png (3192, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo_01.png (15931, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo_02.png (17307, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo_03.png (16350, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo_04.png (15935, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo_05.png (13255, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\html\inpaint_nans_demo_06.png (9398, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\demo\inpaint_nans_demo_old.m (669, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\doc (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\doc\Nomination comments.rtf (1954, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\doc\methods_of_inpaint_nans.m (6649, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\garden50.jpg (22991, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\inpaint_nans.m (16539, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\inpaint_nans_bc.m (11706, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\inpaint_nans_demo.m (714, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\license.txt (1313, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\monet_adresse.jpg (148268, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\test (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\Inpaint_nans\test\test_main.m (3028, 2016-07-16)
kakearney-boundedline-pkg-e8224db\LICENSE.txt (1080, 2016-07-16)
kakearney-boundedline-pkg-e8224db\boundedline (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\boundedline\boundedline.m (12900, 2016-07-16)
kakearney-boundedline-pkg-e8224db\boundedline\outlinebounds.m (1202, 2016-07-16)
kakearney-boundedline-pkg-e8224db\catuneven (0, 2016-07-16)
kakearney-boundedline-pkg-e8224db\catuneven\catuneven.m (1163, 2016-07-16)
... ...

## boundeline.m Documentation The boundedline function is a Matlab utility to plot error bounds, confidence intervals, etc. for a line or lines. Advantages include: - allows x-y input similar to plot, where one call can create multiple lines at once, either by listing consecutive x-y pairs or by using using matrices for x and/or y. - can add bounds in either the x- or y-direction, leading to support of plots where the x axis represents the dependent variable - can render the shaded bounds either with transparency or as a lighter opaque patch, allowing flexibility with different renderers (helpful when OpenGL acts up, as it often does on my own computer). - Can use linespec definitions, a colormap, or the default color order, as well as varying color intensity for the shaded bounds, for flexible color of lines and bounds - returns handles of lines and patches for future modification if necessary ### Syntax ``` [hl, hp] = boundedline(x, y, b) [hl, hp] = boundedline(x, y, b, linespec) [hl, hp] = boundedline(x1, y1, b1, linespec1, x2, y2, b2, linespec2) [hl, hp] = boundedline(..., 'alpha') [hl, hp] = boundedline(..., ax) [hl, hp] = boundedline(..., 'transparency', trans) [hl, hp] = boundedline(..., 'orientation', orient) [hl, hp] = boundedline(..., 'cmap', cmap) ``` See function help for description of input and output variables. ### Examples Plot with opaque bounds. In this example, the bounds on the first line vary over x, while the bounds on the second line are constant for all x. An outline is added to the bounds so the overlapping region can be seen more clearly. ```matlab x = linspace(0, 2*pi, 50); y1 = sin(x); y2 = cos(x); e1 = rand(size(y1))*.5+.5; e2 = [.25 .5]; ax(1) = subplot(2,2,1); [l,p] = boundedline(x, y1, e1, '-b*', x, y2, e2, '--ro'); outlinebounds(l,p); title('Opaque bounds, with outline'); ``` ![boundedline1](boundedline_readme_01.png) For our second axis, we use the same 2 lines, and this time assign x-varying bounds to both lines. Rather than using the LineSpec syntax, this example uses the default color order to assign the colors of the lines and patches. ```matlab ax(2) = subplot(2,2,2); boundedline(x, [y1;y2], rand(length(y1),2,2)*.5+.5, 'alpha'); title('Transparent bounds'); ``` ![boundedline2](boundedline_readme_02.png) The bounds can also be assigned to a horizontal orientation, for a case where the x-axis represents the dependent variable. In this case, the scalar error bound value applies to both lines and both sides of the lines. ```matlab ax(3) = subplot(2,2,3); boundedline([y1;y2], x, e1(1), 'orientation', 'horiz') title('Horizontal bounds'); ``` ![boundedline3](boundedline_readme_03.png) Rather than use a LineSpec or the default color order, a colormap array can be used to assign colors. In this case, increasingly-narrower bounds are added on top of the same line. ```matlab ax(4) = subplot(2,2,4); boundedline(x, repmat(y1, 4,1), permute(0.5:-0.1:0.2, [3 1 2]), ... 'cmap', cool(4), ... 'transparency', 0.5); title('Multiple bounds using colormap'); set(ax([1 2 4]), 'xlim', [0 2*pi]); set(ax(3), 'ylim', [0 2*pi]); ``` ![boundedline4](boundedline_readme_04.png)

近期下载者

相关文件


收藏者