matlab - Change the LineWidth in some parts of a plot -


I have an ECG signal and there are some special points to calculate.

Enter image details here

Let me point them out Pair) is to have a thick linewood between. I have a sample with a brush.

Here are my variables,

  signal% ECG signal T% time Q% position of red dot T% location of yellow points  
< P> Four of these pairs are visible in the picture, but more are there.

Is it possible without loop_hold

?

You can simply use the use and again in the area of ​​interest Can plot:

% Some dummy data x = 0: 0.01: 10; Y = sin (x); Conspiracy (x, y)% of data we want to emphasize% You can also select a subset of your current data x_start = 2; X_end = 4; X_thick_line = x_start: 0.01: x_end; Y_thick_line = Sin (x_thick_line); Plot ([x_start x_end], [y_thick_line (1) y_thick_line (end)], 'ro', ... x_thick_line, y_thick_line, 'color', 'r', 'linewidth, 6')

This gives the following results in Octave, should be similar in MATLAB:

 Enter image details here


Comments