Info

This question is closed. Reopen it to edit or answer.

How to write cell arrays in Excel?

2 views (last 30 days)
gsourop
gsourop on 19 Apr 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
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')

Answers (1)

the cyclist
the cyclist on 19 Apr 2019
I use cellwrite from the File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!