To determine the points of cancellation on h-reflex and m-wave in MATLAB, you can follow these steps:
main.m106 chars4 lines
daq.createSession
function to create a session object for data acquisition.main.m29 chars2 lines
main.m46 chars2 lines
main.m45 chars2 lines
main.m75 chars3 lines
main.m864 chars12 lines
main.m268 chars14 lines
This script generates a stimulation pulse with the specified parameters and alternates its polarity in each iteration of the loop. It records the muscle response using an analog input channel and finds the maximum and minimum values and indices of the response. It stores the amplitudes of the h-reflex and m-wave and calculates the times of cancellation for each of them. Finally, it plots the results for all iterations.
gistlibby LogSnag