for i=1:Numberofstationsfprintf('Station ')fprintf(B(i,1))fprintf(':')fprintf(B(i,2))fprintf('Miles')fprintf('"')fprintf(GetStationName(B(i)))fprintf('"')fprintf('\n')
When I print this, it should look like: Station 35: .8574 miles, "Street ave"
so "station" is a string, "35" is part of a matrix,":" is a character, ".8574 is part of a matrix, "miles," is a string, and "street ave" is from a function call. Is there an easier way to do this?
Best Answer