fid = fopen('./tickers.tex', 'wt+');
for x = 1 : size(C.names,1)
fprintf(fid, '%s & ', C.names(x,1:end-1));
fprintf(fid, '%s \\
', C.names(x,end));
end
fclose(fid);
Why does this give me the error:
Error using fprintf
Function is not defined for 'cell' inputs.
While this does work:
fprintf(' %f ', D{:});
I'm having difficulties understanding basic matlab datatypes. Could anyone provide me with a solution to print the cell array just like the last syntax?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…