Vect tip of the week : Vectorization of piecewise functions

Hi all. As every week*, we will have a tip for those who want to vectorize their matlab programs, for reasons already stated in earlier posts. In this case, we will look at the vectorization of piecewise functions. Let’s say you have a function like this : which, when plotted, would look like this OK. So, what’s the deal? Well, from the earlier posts on … Continue reading Vect tip of the week : Vectorization of piecewise functions