How to export data from matlab to excel
显示 更早的评论
Hi all. I want to display/export data from matlab to excel, but i dont know how to make it. Can someone help me ? thanks before.
采纳的回答
Azzi Abdelmalek
2013-6-3
编辑:Azzi Abdelmalek
2013-6-3
Example
A=magic(5)
xlswrite('filename.xls',A)
Look at
doc xlswrite
doc xlsread
9 个评论
i've using xlswrite..
nilaieuc=[eucmtkaki; eucmtkamu; eucmtkimu; eucmtkahi; eucmtkihi];
s = xlswrite('dataimg',nilaieuc);
that my code that the result is start from A1 to A5. how to add data to next column ? ( i mean B1 :B5, C1:C5, etc ).
thx before sir.
a=[1;2;3;4;5];
xlswrite('fil21.xls',a);
b=[10;20;30;40;50];
xlswrite('filname.xls',b,'B1:B5','append');
may i know, for what append is used ?
Normally append allows to do not erase the previous data;
so, when I want to store the second data, the first data is not erased? and it will automatically be saved to the next column (B1: B5, C1: C5), is it?
I'm new in using matlab
thanks in advance
No, you have to specify the range
I tried xlswrite, but each character is printed in its own cell, it does not print it to a single cell iin xlsx.
May I know how to make some text bold or change font size while exporting from MATLAB to Excel.
@Shivam Mishra: Search this forum for "ActiveX Excel" and you will find some examples.
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
产品
标签
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
