add matlab code, using JLabel array to reduce code