How to plot the equation below in Matlab. There are two factors in this equation.
Note that k is a scalar number in (-1,1).
So given an x value, a double value (-infinity,+infinity).
I need to plot a graphic of this function.
if x>0 plot (1-k)x
else (case x<=0) plot(1+k)x