Page 1 of 1

Matlab don´t find dynare_m

PostPosted: Wed Feb 01, 2012 11:32 am
by enzimera
Hi,

I compile a snapshot of few days ago of dynare, i installed it and it´s seems it´s ok but if i try execute dynare_m on matlab's command line i get :

>> dynare_m
Undefined function or variable 'dynare_m'.

I have the path correctly then i don´t understand why don´t find it because from linux's command line i can get :
[root@peter temp]# which dynare_m
/usr/local/lib/matlab/dynare_m

¿ any suggestions ?

thanks

Re: Matlab don´t find dynare_m

PostPosted: Mon Feb 06, 2012 11:01 am
by HoutanBastani
dynare_m is not a matlab or mex file, so you cannot run it as you are trying to do from the Matlab prompt. I assume you're trying to do this because you just want to preprocess the mod file. The command you need is:

Code: Select all
system('dynare_m')


Of course, you would pass the mod file & whatever options you wanted in the string after dynare_m.