Branes from matrices