Questions tagged [matlab]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
54 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 ...
2
votes
1answer
88 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 ...
2
votes
1answer
65 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 ...
2
votes
0answers
40 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 ...