clc; clear all; x = xlsread(‘D:\test‘); x
则输出文件中的第一个sheet中的数据:
2 读取指定sheet中的数据,代码如下:
clc; clear all; x = xlsread(‘D:\test‘,‘Sheet1‘); x
3 读取指定Sheet中指定矩阵的数据,代码如下:
clc; clear all; x = xlsread(‘D:\test‘,‘Sheet1‘,‘b2:d3‘); x
4 求相应矩阵的平均值
clc; clear all; x = xlsread(‘D:\test‘,‘Sheet1‘,‘b2:D3‘); mean(x)
5 求范围内所有数据平均值
clc; clear all; x = xlsread(‘D:\test‘,‘Sheet1‘,‘b2:D3‘); mean(mean(x))
matlab 处理excel中数据,布布扣,bubuko.com
原文:http://blog.csdn.net/cjr3517126/article/details/21237309