how to plot vertical dotted line ??

i want plot vertical dotted line on the same figure(scale 25), at samples: 180 and 220 the length of my ecg is 2000??
load ecg.m;
subplot(221);
plot(ecg); title ('ECG');
xlabel('samples'); ylabel('magnitude');
fs=360;
subplot(222)
CWTcoeffs = cwt(ecg,20:55,'sym4','plot');
colormap jet; colorbar;
subplot(223);
qrs_thr_end=220;
qrs_thr_on=180;
plot(CWTcoeffs(25,:)); title('Scale 25');

 採用された回答

Ahmed raafat
Ahmed raafat 2017 年 10 月 16 日

1 投票

x=your_value*ones(1,length_of_y);
plot(x,y)

3 件のコメント

Good mind
Good mind 2017 年 10 月 16 日
ahmed,thank you very much. so, how can i get it dotted??
Ahmed raafat
Ahmed raafat 2017 年 10 月 17 日
plot(x,y,'.')
Good mind
Good mind 2017 年 10 月 17 日
salam ahmed,thank you

サインインしてコメントする。

その他の回答 (0 件)

製品

タグ

質問済み:

2017 年 10 月 16 日

コメント済み:

2017 年 10 月 17 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by