main.m223 chars15 lines
Explanation:
zeros
function creates a matrix filled with zeros.for
loop fills each column of the matrix with values ranging from 1 to the number of columns..*
operator performs element-wise multiplication.gistlibby LogSnag