``Foreign Demand for Domestic Currency and the Optimal Rate of Inflation,'' by Stephanie Schmitt-Grohe and Martin Uribe, Journal of Money, Credit and Banking 44(6), September 2012, 1307-1324.

Paper

Online Appendix

Matlab code
(requires Matlab 2008a Symbolic Math Toolbox)
readme.txt (Brief tutorial)
table.m
simu.m
findvh.m
primal_form.m