printf – Matlab Error: Function is not defined for cell inputs

printf – Matlab Error: Function is not defined for cell inputs

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 \\ tn, C{x}.names(end)); 
end 
fclose(fid);

Is this what you want? If not please provide more information about C

printf – Matlab Error: Function is not defined for cell inputs

Leave a Reply

Your email address will not be published.