Java Loop Through List Of Strings Matlab Plot