Usage: |
expmat = nmexpandmat(mat,fitfix{,npar,nfit})
|
Input: |
| mat | nfit x nfit matrix, matrix to be expanded
|
| fitfix | npar x 1 vector, indicator of fixed vs. fitted parameters in a model;
fitfix[i] = 0 means that the ith parameter remains fixed in a model,
fitfix[i] <> 0 means that the ith parameter was fitted for.
|
| npar | (optional) scalar, total number of parameters in a model;
default npar = rows(fitfix)
|
| nfit | (optional) scalar, number of fitted parameters in a model;
default nfit = sum(fitfix <> 0)
|
Output: |
| expmat | npar x npar matrix, expanded matrix |