- 从文件导入数据
data=load('dataFile.txt')
http://octave.1599824.n4.nabble.com/How-to-read-file-and-plot-td2130534.html
- 引用数据
x=data1(2,:)//第2行
- 循环导入某目录下的所有文件数据https://cn.mathworks.com/matlabcentral/answers/101808-how-can-i-import-multiple-files-into-the-matlab-workspace
files=dir('*.txt');
for
- 定义数组
b = 1:100; //100维的数组