fid = fopen(\'./tickers.tex\', \'wt+\');
for x = 1 : size(C.names,1)
fprintf(fid, \'%s & \', C.names(x,1:end-1));
fprintf(fid, \'%s \\\\\\\\ \\t\\n\',
Ok from the error and code you have I am assuming C is an array of cells and you want to print some string from each entry of C. Assuming this, your code is incorrect. Try this:
fid = fopen('./tickers.tex', 'wt+');
for x = 1 : size(C,1)
fprintf(fid, '%s & ', C{x}.names(1:end-1));
fprintf(fid, '%s \\\\ \t\n', C{x}.names(end));
end
fclose(fid);
Is this what you want? If not please provide more information about C