フィルターのクリア

ECG signal in my GUI

2 ビュー (過去 30 日間)
Gopika Akhil
Gopika Akhil 2018 年 3 月 6 日
コメント済み: Gopika Akhil 2018 年 3 月 9 日
I want to make an ECG simulator in MATLAB GUIDE. How can i see running ECG signals in my GUI. I do not want plot, drawnow or comet function because they will not help me plot waveforms as exactly we seen in an ECG machine.
A sample ecg simulator link https://www.skillstat.com/tools/ecg-simulator

回答 (1 件)

Rik
Rik 2018 年 3 月 6 日
編集済み: Rik 2018 年 3 月 6 日
If you don't want to use those functions, you'll have to generate an image, which will be very slow.
A good idea might be to use plot to plot the signal itself, set the graphics the way you want them, and simulate movement by changing the xlim. That way you can create the loop. You can also just delete the line object plot returns and replot that every loop.
  2 件のコメント
Gopika Akhil
Gopika Akhil 2018 年 3 月 6 日
I tried to put the ECG signal in a loop. But it is not working. Kindly can you give some suggestions to improve the code. A portion of the code is added.
fid= fopen('E:\ecg.txt'); s = textscan(fid,'%f'); fclose(fid); x=s{1}; x=x(1:1:40000); len = 40000;
for(inx = 1:40000)
plotSig(inx) = x(1);
numInc=2;
if inx~=1
for(j = inx-1:-1:1)
plotSig(j) = x(numInc);
numInc=numInc+1 ;
end
end
plot(plotSig);
hold on;
plotSig = 0;
end
Gopika Akhil
Gopika Akhil 2018 年 3 月 9 日
Thanks, The issue got resolved.

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

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by