Added name.
Fixed logical if statement issue with R2014b.