To support an analysis template which contains both workbook and matrix, everything must be in one workbook.
So in Origin 2018b, we allow user to right click a workbook tab and choose Add Matrix as Sheet context menu.
This actually adds the whole matrix book as a sheet in workbook. You can double click the matrix to open the matrix again.