function [wc]=wavecut(wf,startp,endp) wc=wf(round(startp):round(endp)); end