One Input Multiple Outputs Matlab For Loop