I'm looking to display data in two columns. The first column will have a movies name and the second a rating out of 5. I want the data to be displayed in such a way that the ratings, regardless of the length of the movie title all display in on vertical line. I currently have:
Toy Story (1995) : 4
GoldenEye (1995) : 3
Seven (Se7en) (1995) : 4
Braveheart (1995) : 1
Bad Boys (1995) : 3
Batman Forever (1995) : 2
Star Wars (1977) : 5
Shawshank Redemption, The (1994) : 5
Ace Ventura: Pet Detective (1994) : 3
Aladdin (1992) : 3
I'm using the following code:
fprintf('%s : \t %d\n', movieList{i},user_ratings(i));
where the above line is obviously in a loop. I tried using a tab to see if things would line up but clearly not much luck. Any ideas on how I could achieve this?