An ideal diode blocks the flow of current in the direction opposite that of the diode’s arrow symbol. Based upon this property, the diode can be used to make a half-wave rectifier. For an ideal diode, the voltage v_L across the resister load is given by: v_L = {v_s, if v_s > 0 0, otherwise. Write a MATLAB program using vectorizing commands and logical operators to plot v_L for ten seconds if the supply voltage is v_s = 3e^-t/3 sin(pi t) Volts.