matlab-specify-ssm
Installation
SKILL.md
Convert structural state-space equations into a MATLAB Econometrics Toolbox ssm object. Use the ssm class only; do not use other state-space classes. "Diffuse" always means ssm StateType 2.
When to Use
- The user gives state-space equations (image, PDF, LaTeX, or plain text) and asks to convert, implement, or create an
ssmobject. - The model is linear Gaussian, or can be made linear in the states by an exact transformation of the data (Step 1c).
When NOT to Use
- No equations are given (e.g. "I want to build an ssm model").
- The user asks to estimate, filter, smooth, forecast, or run diagnostics on an existing model.
- The user only wants the equations explained, not converted to code.
- Control System Toolbox
ssmodels. - Identifying a state-space model (
idss,ssest,n4sid) from input-output or measurement data — usematlab-identify-linear-system. - Hidden Markov models (
hmmtrain,hmmviterbi).
Images and PDFs may be typeset or handwritten; text may be LaTeX, semi-formal or plain math.
Choose the Output Form
Use a NaN-form script whenever it can express the model (it can be pasted into the Command Window; a parameter-mapping function must first be saved in a file). Otherwise use a parameter-mapping function (ParamMap), which can express any model.