MATLAB: Question?please help me.

MATLAB

What does this sentence in matlab? kvalue=zeros(size(data,1));
data word is a database.

Best Answer

Example
data=[1 2 3;4 5 6]
n=size(data,1) % is number of rows of data
size(data,2) % is number of columns of data
zeros(n) %will create a nxn array of zeros