Generate Mat Class code template