+1 vote
in Matlab by
Explain the process to pre-allocate a non-double Matrix

1 Answer

0 votes
by
Pre-allocating a block of memory for holding a non-double matrix is memory efficient. While allocating blocks of memory for a matrix, zeros are pre-allocated to a matrix.The functions to pre-allocate memory is int8(), example matrix =int8(zeros(100));

The repmat function is used to create a single double matrix, example matrix2=repmat(int8(0), 100, 100)

Related questions

0 votes
asked Mar 30, 2022 in Apache Webserver by sharadyadav1986
0 votes
asked Dec 16, 2019 in NGINX by sharadyadav1986
...