if statement unnecessary, b/c even if w = Inf, alpha still comes out as 90 in the matlab calculation