A person's heart rate was measured as 100 beats per minute and could be modeled as a square waveform with systole lasting 150ms. Sketch the idealized pressure waveform in MATLAB?
clc;
%Given that heart rate is 100 beats per minite
% systole lasting 150ms=.15 sec
%heart rate = 100/60 beats per minite5/
Hr=100/60; %beats per sec
%Hr=5/3 so for 3 sec we have 5 beats
% as systole lasts .15 secs
S=.15;
%Diastole and Systole are two steps in heart rate moniter
% there fore time taken for Diastole and Systole is time between
two
% heartbeats D+S= H, as in 3sec 5beats occur
D=(3-5*S)/5;
% we can get duty cycle of square wave as D/(S+D)
Dy=S/(D+S);
t = 0:.05:3;
f=1/(D+S);
y = square(2*pi*f*t,Dy)+randn(size(t))/10;
plot(t,y);grid on;xlabel('time')
Get Answers For Free
Most questions answered within 1 hours.