Explain how you can pre-allocate a Non-Double Matrix?

Answer

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));

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

All matlab Questions

Ask your interview questions on matlab

Write Your comment or Questions if you want the answers on matlab from matlab Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---