function moga = plm(t)
    if t > 0 && t < 2
        moga = sin(4 * pi * t);
    else
        moga = 0.5;
    end
end
Not enough input arguments.

Error in plm (line 2)
    if t > 0 && t < 2