MATLAB Answers

gsourop
0

How to write cell arrays in Excel?

Asked by gsourop
on 19 Apr 2019
Latest activity Answered by the cyclist
on 19 Apr 2019
Hi everyone,
I am trying to write a cell array in Excel but I don't get any results. The code I have prepared is below:
A = randn(10,1);
for i = 1 : 10
cell_x = sprintf('%.2f%s', A(i), '**');
Table{i} = cells_x;
end
xlswrite('Results',Table,'Test','b2')

  0 Comments

Sign in to comment.

1 Answer

Answer by the cyclist
on 19 Apr 2019

I use cellwrite from the File Exchange.

  0 Comments

Sign in to comment.