How we can only translate .Mod to .Mat file without running?

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

How we can only translate .Mod to .Mat file without running?

Postby jack2015 » Sun Jul 19, 2015 1:49 pm

Hi.

How we can only translate .Mod to .Mat file without running? For example MyTest.Mod to MyTest.Mat - same structure that Dynate do it automatically.

Thanks.
jack2015
 
Posts: 13
Joined: Fri Jul 17, 2015 2:02 pm

Re: How we can only translate .Mod to .Mat file without runn

Postby jpfeifer » Sun Jul 19, 2015 3:24 pm

What do you mean? In principle, when you run Dynare successfully on a mod-file, Dynare will save a _results.mat-file with all structures you will generally need.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: How we can only translate .Mod to .Mat file without runn

Postby jack2015 » Sun Jul 19, 2015 3:32 pm

that's true but suppose that i only want m-file. I only want translate mod file to m-file without any other process. Run a code and generate a m-file based on mod file.
jack2015
 
Posts: 13
Joined: Fri Jul 17, 2015 2:02 pm

Re: How we can only translate .Mod to .Mat file without runn

Postby jpfeifer » Tue Jul 21, 2015 8:14 am

After running Dynare once, an m-file with the same name as the mod-file will be created. This is all you need to run.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: How we can only translate .Mod to .Mat file without runn

Postby jack2015 » Tue Jul 21, 2015 8:27 am

thank you for answer. That's true but i only need the translated file without running it. I don't want the whole process of simulation, estimation and output generating. Only translation is sufficient.
jack2015
 
Posts: 13
Joined: Fri Jul 17, 2015 2:02 pm

Re: How we can only translate .Mod to .Mat file without runn

Postby jpfeifer » Tue Jul 21, 2015 8:57 am

I don't understand what you exactly want. Please try to describe your objective in full coherent English sentences.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: How we can only translate .Mod to .Mat file without runn

Postby jack2015 » Wed Jul 22, 2015 10:57 am

When we run a .mod file, first, dynare translate .mod file to m-file. after automatically run m-file (main process of dynare- initialization, simulation, estimation etc.) and finally show outputs based on the m-file functions. I only want translated file. I don't want dynare automatically run m-file for main process. Suppose that we have a mod file. After running this mode file I only need a translated m-file beside it. Without any running, processing etc. Only a translator structure not more. I only want this part of total process of dynare.
jack2015
 
Posts: 13
Joined: Fri Jul 17, 2015 2:02 pm

Re: How we can only translate .Mod to .Mat file without runn

Postby jpfeifer » Wed Jul 22, 2015 11:11 am

Ok. Please see the manual on the command line option
Code: Select all
onlymacro
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: How we can only translate .Mod to .Mat file without runn

Postby jack2015 » Wed Jul 22, 2015 4:45 pm

Thank you for answer but 'onlymacro' command didn't create any m-file. I need translated m-file.
jack2015
 
Posts: 13
Joined: Fri Jul 17, 2015 2:02 pm

Re: How we can only translate .Mod to .Mat file without runn

Postby jpfeifer » Thu Jul 23, 2015 7:12 am

Sorry, my mistake. I think this is only possible by hacking the dynare.m file currently. If you comment out the last line
Code: Select all
evalin('base',fname) ;

it will not run the m-file. However, you have to undo this when you want to use Dynare regularly.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: How we can only translate .Mod to .Mat file without runn

Postby jack2015 » Thu Jul 23, 2015 9:10 am

Thank you so much for your helps.
jack2015
 
Posts: 13
Joined: Fri Jul 17, 2015 2:02 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests