how to create table and export it to Excel?
Show older comments
I have few vectors at the same length that contains numbers. I want to export them to the Excel or Word. how i do it?
Accepted Answer
More Answers (1)
Peter Perkins
on 8 Jun 2015
Alternatively,
>> v1 = [1 2 3 4 5]'; v2 = [6 7 8 9 10]'; v3 = [11 12 13 14 15]';
>> t = table(v1,v2,v3)
t =
v1 v2 v3
__ __ __
1 6 11
2 7 12
3 8 13
4 9 14
5 10 15
>> writetable(t,'somefile.xlsx');
6 Comments
eran golden
on 10 Jun 2015
Guillaume
on 10 Jun 2015
Yes, it came with 2013b or 2014a
Ambati Sathvik
on 2 Jul 2020
You saved my day
Sohrab Morshedi
on 2 Dec 2020
Thanks
Christofer Longa
on 3 Feb 2021
Thank you....very very much
Lukas Sokol
on 18 Mar 2021
much love
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!