I'm trying to plot function that defined on different intervals like following.
Let
phi_i(x)=M*(x-(i-1)/M) on [(i-1)/M,i/M] and M*((i+1)/M-x) on [i/M,(i+1)/M] and 0 on other values.
I got values u_1, u_2 …u_(M-1) and note u(x)=u_1 phi_1(x)+u_2 phi_2(x) +…+u_(M-1) phi(x)
How to plot u(x)?
Best Answer