Create codebook.m