I need to find the change of one endogeneous variable in the optimization given a change of one exogenous variable and make a plot.
I got the scope of exogenous variable. how to plot it? I meet the error for the coding below
clear; close all; clc;
q=0.5:1.5 % here q is the varing variable and it ranges from 0.5 to 1.5
[K,L,lambda]=q2_f(q,w,y,X0) %here are the solution of the optimization