To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
xlabel('Stock Price at Maturity ($)'); ylabel('Gain ($)'); axis([0 20 -2 10]);
The command above gives me the payoff of an call option, unfortunately the x-axis goes from -2 to 20, but I would like to see the x-axis from 0 to 20, so the starting point should be y=0 and not y=-2. However the plot should still show the y-axis from -2 to 10 and the negative values for y
No products are associated with this question.