帮小伙伴研究这个  随便写写 

 安装参考https://blog.csdn.net/qrlhl/article/details/52213135

 函数学习:

    disp函数 :

    1、disp函数:显示文本或数组

    2、用法说明:disp(X) 函数显示指定的文本或数组。如果参量是数组,则显示数组的内容;如果参量是字符串,则显示字   符串文本的内容.

    

   importdata函数

  

importdata 
Loda data from file


Syntax 
A = importdata(filename) 
A = importdata(‘-pastespecial’) 
A = importdata(_,delimiterIn) 
A = importdata(_,delimiterIn,headerlinesIn) 
[A,delimiterOut,headerlinesOut] = importdata(_)


Description 
- A = importdata(filename) loads data into array A. 
- A = importdata(‘-pastespecial’) loads data from the system - clipboard rather than from a file. 
- A = importdata(_,delimiterIn) interprets delimiterIn as the column separator in ASCII file, filename, or the clipboard data. You can use delimiterIn with any of the input arguments in the above syntaxes. 
- A = importdata(_,delimiterIn,headerlinesIn) loads data from ASCII file, filename, or the clipboard, reading numeric data starting from line headerlinesIn+1. 
- [A,delimiterOut,headerlinesOut] = importdata(_) additionally returns the detected delimiter character for the input ASCII file in delimiterOut and the detected number of header lines in headerlinesOut, using any of the input arguments in the previous syntaxes.

 数据引入:delimiterIn 空行  headerlinesIn 表头  

     列表地第一列 会被当成行号

 tem = [a:b:c]  a:开始  B 步长  c :结束

 补充-

获得矩阵行数或列数的函数如下:

1、ndims(A)返回A的维数

2、size(A)返回A各个维的最大元素个数

3、length(A)返回max(size(A))

4、[m,n]=size(A)如果A是二维数组,返回行数和列数

5、nnz(A)返回A中非0元素的个数