我有一个ECG信号,并计算了其中的一些特定点。

我想在这些点(每对)之间有更厚的LineWidth。我用刷子做了一个样本。
以下是我的变量,
signal % the ECG signal
t % time
Q % location of red points
T % location of yellow points其中四对在图片中是可见的,但还有更多。
没有loop _ hold on可以吗?
发布于 2014-10-27 23:28:02
您可以只使用hold on并在感兴趣的区域上再次绘制数据:
% Some dummy data
x = 0:0.01:10;
y = sin(x);
plot(x,y)
% Data that we want emphasized
% You can also select a subset of your existing data
x_start = 2;
x_end = 4;
x_thick_line = x_start:0.01:x_end;
y_thick_line = sin(x_thick_line);
% Plot over the existing plot with thicker line
hold on
plot([x_start x_end],[y_thick_line(1) y_thick_line(end)],'ro',...
x_thick_line,y_thick_line,'Color','r','LineWidth',6')这在Octave中给出了以下结果,在MATLAB中应该是相同的:

发布于 2014-10-27 23:47:44
您应该将该函数绘制三次(假设a..b的样式不同):
https://stackoverflow.com/questions/26590874
复制相似问题