How can i design a question type matrix using xls?

Welcome to the community, @Bakar1! The first step would be is to design your matrix question (as outlined in this support article Question Matrix Response Type) in a form builder and then export/download the form in XLSForm so that you can edit/update as required.