Update func_discharge_rate.m

Fix function header syntax.