How to identify error panel in matlab

I would like to define error bars at both ends for matlab. Typically, the matlab example would be http://matlab.izmiran.ru/help/techdoc/ref/errorbar.html , where the error string will take the standard deviation (E) and make it equal (symmetrical) at both ends.

I would like to highlight two points separately from building the exact point (x, y).

Please inform. Thank.

+3
source share
1 answer

As Singlet mentions, the L and U parameters for errorbar should do the job:

% Create some example input data.
x = 1:10
y = cumsum( randn(1,10) );
lower = y - ( rand(1,10) );
upper = y + ( rand(1,10) );

% Convert absolute lower and upper bounds into the relative values 
% values that are expected by the errorbar function.
L = y - lower;
U = upper - y;

figure(1);
clf;
hold('on');
plot( x, y, 'b-' );
errorbar( x, y, L, U, 'r', 'Marker', 'none', 'LineStyle', 'none' );
+7
source

Source: https://habr.com/ru/post/1765552/


All Articles