xlswrite is documented to accept one array for output...you've got two disparate pieces of data to place in the spreadsheet--you'll have to either
- call xlswrite twice with each array and a RANGE argument to not overwrite the first with the second, or
- create a composite array that contains all the data in the desired locations to be written within that array
We can't tell from the limited info just what you expect result to be...see the doc for details of alternate syntax for sheet and range as well as examples with cell arrays to build composite output arrays that are supported.