[signal,Fs,tm]=rdsamp('08455'); %recording name have 2 leads sig = signal(:,1); %we will wok on the first one s= 9205760; %samples fs = 250; %sample rate t = floor(s/ts); %time for the recording t_i = 0.8; %initial time for the inteval 2/3 of first 1.2 s i = floor(t/6); %nr of signals for j =1:i t_f = t_i +6; %final time for the interval m(s,j) = sig((t_i*fs):(t_f*fs)); %I wanted to get every signal in a matrice in which every column will be a signal t_i = (t_f*ts +1)/ts; %initial time for further intervals end
% demo code n=100; x=(1:n)/n; y= 0.5 + sin(20*x)+ 0.02*randn(1,n); threshold = 1; % [ind_pos,t0_pos,s0_pos,ind_neg,t0_neg,s0_neg]= crossing_V7(y,x,threshold,'linear'); % positive slope zero crossing points plot(x,y,'b',t0_pos,s0_pos,'+r',t0_neg,s0_neg,'+g','linewidth',2,'markersize',12);grid legend('signal','positive slope crossing points','negative slope crossing points');
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.