Publisher review:mep creates epochs (0|1) in a logical array according to a list of indices (begin:end). creates - completely vectorized - a logical array/vector with epochs/intervals set to according to a list of indices of the form:begin = [b1 b2 ... bN]end = [e1 e2 ... eN]where s and s may overlap or be included within each other.lvec=[b1:e1 b2:e2 ... bN:eN]itself can be used to retrieve/assign values from a numerical construct, eg,vec(1,2,lvec)=nan;help mepvix = mep(v,ixb,ixe)vix = mep(v,[ixb;ixe])to create epochsreturns in VIX a array with epochs set totrue: ixb(1)->ixe(1) ... ixb(N)->ixe(N)false: otherwisecorrectly handles epoch overlaps/inclusions/reversalsv: vector (to size VIX, is not changed)ixb: list of indices BEGIN epochixe: list of indices END epoch% examplesz=zeros(1,10);vix=mep(z(1,:),[1 5],[3 10]);z(1,vix)=1% 1 1 1 0 1 1 1 1 1 1z=zeros(1,10);vix=mep(z(1,:),[2 3 2 6 9],[2 3 4 7 10]);z(1,vix)=1% 0 1 1 1 0 1 1 0 1 1z='----------';vix=mep(z,[[1 3 6];[4 4 8]]);z(vix)=' '% - -- Requirements: ยท MATLAB Release: R13
matlab mep is a Mathematica script for Mathematics scripts design by Marcus.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
mep creates epochs (0|1) in a logical array according to a list of indices (begin:end).
Operating system:Windows / Linux / Mac OS / BSD / Solaris