Why should I use the zeros function?
22 views (last 30 days)
Hello, I don't understand. Why should I use the zeros function?
In this case, I don't understand zeros(1,8640). please explain to me
Deeds on 22 Oct 2020
Zeros(m,n) will create a matrix of dimensions m x n with all the elements as 0. This matrix along with the ones(m,n) is often used to pre-allocate a matrix so as to save memory and time of processing.
Read the full documentation here:
Hope that helps!