結果 : how to plot a piecewise function in matlab using for loop