MATLAB: Find intersection of graph

graph intersection

I have this graph like this
plot ([0,1,1,0,0,1,0.5,0],[0,1,0,1,0,0,1.5,0],'-')
how can I find all intersections in this graph?