Can I "export", "write" or "save" a table to eg Excel ?
Show older comments
I want to write my table variable in eg .TXT file of a .XLSX . Can I do that ?
Answers (2)
Azzi Abdelmalek
on 29 Sep 2013
Use xlswrite
doc xlswrite
oc xlsread
2 Comments
Michaël
on 29 Sep 2013
Azzi Abdelmalek
on 29 Sep 2013
C={'A' 'B';1 4;2 5;3 6}
xlswrite('test.xls',C)
Image Analyst
on 29 Sep 2013
0 votes
You can use fprintf() if you want to write out a simple text file. See the help for an example. You can use xlswrite() as long as you aren't going to do it over and over again in a loop, which would be very slow. In that case use ActiveX (let me know if you want a demo).
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!