toying with some ideas in matlab