MATLAB读写Excel文件中的数据
读取:
%读取filename文件中指定表的数据,存入dataRead矩阵中
dataRead=xlsread(\'filename.xls\',sheet);
写入:
%将矩阵dataWrite中的数据写入filename表中,从C1单元格开始
xlswrite(\'filename.xls\',dataWrite\',\'C1\');
作者:耑新新,发布于 博客园
转载请注明出处,欢迎邮件交流:zhuanxinxin@aliyun.com
读取:
%读取filename文件中指定表的数据,存入dataRead矩阵中
dataRead=xlsread(\'filename.xls\',sheet);
写入:
%将矩阵dataWrite中的数据写入filename表中,从C1单元格开始
xlswrite(\'filename.xls\',dataWrite\',\'C1\');
作者:耑新新,发布于 博客园
转载请注明出处,欢迎邮件交流:zhuanxinxin@aliyun.com