Questions tagged [matlab]

The application of the multi-paradigm programming language "MATLAB" to economic problems.

Filter by
Sorted by
Tagged with
1 vote
1 answer
20 views

Plotting a variable over terciles

I am looking to create a figure using Stata, specifically a figure depicting the median change in financial constraints over the years, categorized by terciles of total assets and operating cash flow. ...
user282815's user avatar
3 votes
1 answer
81 views

Simulation of a dynamic search and matching model

I want to simulate a search and matching model very close to the canonical model developed by Pissarides. I am interested in representing the trajectory of the unemployment rate when the unemployment ...
mayo's user avatar
  • 31
3 votes
0 answers
15 views

Is there good primer for distributional macroeconomics?

Distributional macroeconomics (for example; works of Ben Moll) seems to be more and more popular these days. Is there any good primer for student that wants to try to get into this new field? I am ...
Lorenzo Pozzi's user avatar
1 vote
0 answers
21 views

Need help with numerical implementation of a model

I am toying around with a capital structure model that looks as follows: $\sup_{D_{t}(A_{t}),K_{t}}\int_{B_{L}}^{B_{H}}(1-\kappa_{t})\pi(t,A_{t},K_{t},B_{t})g_{t}(B_{t})dB_{t}+\kappa_{t}D_{t}(A_{t})[1-...
user41131's user avatar
-3 votes
1 answer
110 views

full rank left annihilator matrix

Suppose I have a matrix A= g=[Vfc/(x1Cdc),x4/(x1Cdc),-x3/Cdc;0 0 0;0 0 x1/Lcpl;0 -1/Cb 0] and I want to find the full rank left annihilator matrix B such that B*A=0. I am using MATLAB.
anamika's user avatar
0 votes
0 answers
72 views

Stochastic Optimization

I am working on a Data Panel project that is about macro volatility, taking into consideration some quality indicators. According to my model, indicators definitely determine macro variables. Data are ...
David K's user avatar
  • 21
0 votes
1 answer
73 views

How to assign a set of parameters to a macroeconomic model in Matlab?

I am trying to assign a vector of values (v= [1/3 0.01 0.5]) to a vector of parameters (w = [alpha beta gamma]) in order to make ...
Hokkaido21's user avatar
2 votes
1 answer
546 views

Matlab: Solow Model Convergence of capital

I am currently trying to create a while-loop which iterates the evolution of the capital stock until it converges on the n-th digit. As I am still quite new to Matlab I face a lot of problems. I would ...
Hokkaido21's user avatar
2 votes
1 answer
117 views

Matlab: While loop in function

I am new to Matlab (& also to stackexchange) and I need to learn it for a dynamic Macro class. I have trouble using a while loop in a function. The function is supposed to calculate the amount of ...
Hokkaido21's user avatar
2 votes
0 answers
448 views

MATLAB code: Plot utility function and budget constraint

how do i plot these? i have this utility function: $$U(x_1,x_2)=\log(x_1)+\beta \log(x_2)$$ and this budget constraint: $$p_1 x_1+p_2 x_2=R$$ where $R=3, p_1=0.5, p_2=0.5$ i dont know how to plot ...
tonysnake92's user avatar