Questions tagged [matlab]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
17 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-...
user avatar
-3 votes
1 answer
50 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.
user avatar
0 votes
0 answers
62 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 ...
user avatar
  • 11
0 votes
1 answer
65 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 ...
user avatar
2 votes
1 answer
214 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 ...
user avatar
2 votes
1 answer
80 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 ...
user avatar
2 votes
0 answers
179 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 ...
user avatar