dyadup - dyadic upsampling
dyadup is an utility function for dyadic upsampling. if EVEN_ODD is even, zeors will be put between input entries and output length will be two times input length minus one. Otherwise, additional two zeros will be put at the head and tail of output so the output length will be two times input length plus one. Default is odd. Optional argumet type is especially for matrix input upsampling.
a=rand(1,100); Y=dyadup(a); b=rand(25,25); Y=dyadup(b,'r',0);
Roger Liu and Isaac Zhi
dyaddown ,