Effacer les filtres
Effacer les filtres

Please remove the errors below

1 vue (au cours des 30 derniers jours)
Muhammad Amir
Muhammad Amir le 29 Mai 2023
Commenté : Walter Roberson le 29 Mai 2023
x = 0.01:0.01:2; default = input('Press 1 if you want default ECG signal, otherwise press 2: ');
if default == 1 li = 30/72; a_pwav = 0.25; d_pwav = 0.09; t_pwav = 0.16; a_qwav = 0.025; d_qwav = 0.066; t_qwav = 0.166; a_qrswav = 1.6; d_qrswav = 0.11; a_swav = 0.25; d_swav = 0.066; t_swav = 0.09; a_twav = 0.35; d_twav = 0.142; t_twav = 0.2; a_uwav = 0.035; d_uwav = 0.0476; t_uwav = 0.433; else rate = input('\nEnter the heart beat rate: '); li = 30 / rate;
% P wave specifications
fprintf('\nP wave specifications\n');
d = input('Enter 1 for default specification, otherwise press 2: ');
if d == 1
a_pwav = 0.25;
d_pwav = 0.09;
t_pwav = 0.16;
else
a_pwav = input('Amplitude: ');
d_pwav = input('Duration: ');
t_pwav = input('P-R interval: ');
d = 0;
end
% Q wave specifications
fprintf('\nQ wave specifications\n');
d = input('Enter 1 for default specification, otherwise press 2: ');
if d == 1
a_qwav = 0.025;
d_qwav = 0.066;
t_qwav = 0.166;
else
a_qwav = input('Amplitude: ');
d_qwav = input('Duration: ');
t_qwav = 0.166;
d = 0;
end
% QRS wave specifications
fprintf('\nQRS wave specifications\n');
d = input('Enter 1 for default specification, otherwise press 2: ');
if d == 1
a_qrswav = 1.6;
d_qrswav = 0.11;
else
a_qrswav = input('Amplitude: ');
d_qrswav = input('Duration: ');
d = 0;
end
% S wave specifications
fprintf('\nS wave specifications\n');
d = input('Enter 1 for default specification, otherwise press 2: ');
if d == 1
a_swav = 0.25;
d_swav = 0.066;
t_swav = 0.09;
else
a_swav = input('Amplitude: ');
d_swav = input('Duration: ');
t_swav = 0.09;
d = 0;
end
% T wave specifications
fprintf('\nT wave specifications\n');
d = input('Enter 1 for default specification, otherwise press 2: ');
if d == 1
a_twav = 0.35;
d_twav = 0.142;
t_twav

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by