Hi all. I am trying to display an element in cell array in one row using fprintf, but when i do it the resultat is different:
information:
my cell array is C:
C = [1x6 double] [1x5 double] [1x7 double]
and the code i am using is:
for j=1:length(C) fprintf('concentration is %.d\n',C{j}) fprintf('\n')end
the result is:
concentration is 45concentration is 35concentration is 20concentration is 15concentration is 8concentration is 4concentration is 2
what i want it to do:
concentration is 45 35 20 15 8 4 2
anyone who can't help me plz.
Thx..
Best Answer