当前位置:网站首页>[matlab] matlab reads and writes Excel

[matlab] matlab reads and writes Excel

2022-07-05 08:37:00 Iron iron t

【matlab】matlab Read and write excel
1.matlab Read in excel surface
Use xlsread() function

A = xlsread(' school report .xlsx');

2.matlab towards excel Write data in
Use xlswrite() function

headers = {
    ' full name ',' class ',' Student number ',' achievement '};
values = {
    ' Wu longlong ',' Three classes in four years ','0012598',99};
xlswrite(' League tables .xlsx',[headers;values]);

Output results :
 Insert picture description here

原网站

版权声明
本文为[Iron iron t]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140541566964.html