Date: May 5, 2013 5:59 AM
Author: Bruno Luong
Subject: Re: fprintf in a loop

Repmat on format is unnecessary:

vector=[3 4 5 6 7 ]
fprintf('%d & $ ', vector);
fprintf('\\\\\n');
% It does look lika a LaTex file

% Bruno