To give multiple x-axis labels in Matlab, you can use xticklabels
function. For example:
main.m212 chars12 lines
In this example, xline
is used to plot two vertical lines at x=3.5 and x=8. xticks
function is used to set these lines as the tick marks and xticklabels
function is used to give labels to each x-line.
You can modify the labels and x-lines positions according to your needs.
gistlibby LogSnag