hatsoff
Oct9-09, 11:53 AM
Hi, all.
I'm interested in plotting the following function:
f(y)=\left\{\begin{array}{ll}y,&0<y<1\\\\2-y,&1\leq y<2\\\\0,&\text{elsewhere}\end{array}\right\}
I know how to plot each curve, but not how to bound them by intervals. Would someone mind taking the time to let me in on the secret?
Thanks!
I'm interested in plotting the following function:
f(y)=\left\{\begin{array}{ll}y,&0<y<1\\\\2-y,&1\leq y<2\\\\0,&\text{elsewhere}\end{array}\right\}
I know how to plot each curve, but not how to bound them by intervals. Would someone mind taking the time to let me in on the secret?
Thanks!