Hi Robert, Thanks for your kind reply. However when I check the createlayout.m function, it turns out that in line 229, the coordinate has been rotated 90 degree (multiply [0 1; -1 0]). For my electrode file, when I remove this coordinate transformation, I get the right layout. Chen