Hi,
I would like to put a fitted line in a scatter plot, that I include in a figure with multiple plots. I am attaching the figure I produce, and I circle the subplot that I am referring to. Below you can find the code for my plotting.
figuresubplot(3,2,1) % first subplot
plot(thetaplot)title('Human Capital Share')xlabel('Time')ylabel('Theta')subplot(3,2,2) % first subplotplot(khplot)title('K/H ratio')xlabel('Time')ylabel('K/H')subplot(3,2,3) % first subplotplot(phiplot)title('Sector II Share')xlabel('Time')ylabel('Phi')subplot(3,2,4) % first subplotplot(zhplot)title('Z/H ratio')xlabel('Time')ylabel('Z/H')subplot(3,2,5) % first subplotplot(uplot)title('MPC')xlabel('Time')ylabel(' Consumption per Wealth ')subplot(3,2,6) % first subplotplot(kh(500:T), kh(501:T+1), 'k.')title('Policy Function for K/H')xlabel('K_t')ylabel('K_{t+1}')
Best Answer