function highpasd = highpass(ordr,cutoff,data);

cutoffreq = 2/cutoff;
[B,A]=butter(ordr,cutoffreq,'high'); 
highpasd=filtfilt(B,A,data);