展开全部
zeros功能是返回一个m×n×p×...的double类零矩阵的一个函数。
注意:m, n, p,...必须是非负整62616964757a686964616fe59b9ee7ad9431333366306462数,负整数将被当做0看待。
首先先列出matlab中help文件对zeros函数的解释:
ZEROS Zeros array.
ZEROS(N) is an N-by-N matrix of zeros.
ZEROS(M,N) or ZEROS([M,N]) is an M-by-N matrix of zeros.
ZEROS(M,N,P,...) or ZEROS([M N P ...]) is an M-by-N-by-P-by-... array of zeros.
ZEROS(SIZE(A)) is the same size as A and all zeros.
ZEROS with no arguments is the scalar 0.
ZEROS(M,N,...,CLASSNAME) or ZEROS([M,N,...],CLASSNAME) is an M-by-N-by-... array of zeros of class CLASSNAME.
Note: The size inputs M, N, and P... should be nonnegative integers.
Negative integers are treated as 0.
Example: x = zeros(2,3,'int8');
具体来讲,zeros(1,8)是创建一个1行,8列的零矩阵。
扩展资料&#x