Getting error: "Undefined function 'tauchen' for input arguments of type 'struct'."

When I try and run the following I get the error "Undefined function 'tauchen' for input arguments of type 'struct'." :
clear
param.sigma=1;
param.rho=0.9;
param.n=7;
param.m=3;
Pi=tauchen(param).M;
lgrid=tauchen(param).lgrid;
This code is from a class tutorial and I watched the TA run it with no issues... I'm wondering if I am missing some kind of package needed to run this? Or could something else be causing this issue?

Respuestas (1)

Voss
Voss el 1 de Feb. de 2022
Yes, it looks like you're missing a function called "tauchen", or maybe you have it somewhere but it's not on the MATLAB path. Have a look around in places you might have saved it, and if you find it add the relevant directory to the path; if you don't find it, contact your TA or review the course materials to see where you might be able to download it from.
It doesn't appear to be part of any MATLAB toolbox.

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 1 de Feb. de 2022

Respondida:

el 1 de Feb. de 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by