Extract a part of a curve with dynare

Dear community,
I hope you are doing well!
My problem is the following:
Taking into account the following code:

tl_parameters = 0.01:0.01:0.6;
ts_parameters = 0.01:0.01:0.6;
[ts_mat, tl_mat]=meshgrid(ts_parameters,tl_parameters);
for ts_iter=1:length(ts_parameters)
for tl_iter=1:length(tl_parameters)
[oo_.steady_state,M_.params,info] = steady_(M_,options_,oo_);
if ~info

The resulting figure shows a circle. I am interested in the part of the figure that is smaller than the line defined by the next equation:

Y = 0.48-1.2*X; for X = 0.01:0.01:0.6;
(with X=tl and Y=Ts)

The problem is that I don’t know how to introduce this condition in the code. I need your help and thanks.

Without a full code and a lot more context, it is impossible to provide any advice.

1 Like

You will find the full code enclosed.

ddd.mod (2.2 KB)

If you have compiled the file, you will find the following figure.


You observe two schemes (two lines) are given! and I want to indicate for the code to delete the superior line, passing throught (0.47;0).

You are plotting a whole set of contour lines. Why would you only plot one line? You might want to deviate from the pre-existing code and simply directly plot what you would like to have.

I would have to eliminate the higher part because it is impossible to do! It’s not real otherwise. So, I should do it with the code, because I expect the code would be submitted to the journal too! So, I should solve this problem. I’ll wait & search a little bit more. Thank You Professor @jpfeifer .

But you still did not tell us what you are trying to achieve. My guess is you are looking for a policy frontier with

[MM,II] = max(M)

hold on