MATLAB Answers

0

How can I suppress the text output of "feature dumpmem" command?

When I use the FEATURE command to determine the largest available block of contiguous memory as follows:
feature('DumpMem')
I receive the following output,
Module Base In Use Free
======================================================== ======== ======== ========
<anonymous> 00010000 00001000 0000f000
<anonymous> 00020000 00001000 0000f000
<anonymous> 00030000 00003000 0000d000
<anonymous> 00040000 00100000* 00000000
<anonymous> 00140000 00010000 00000000
<anonymous> 00150000 00010000 00000000
<anonymous> 00160000 00016000 0000a000
<anonymous> 00180000 0003d000 00003000
<anonymous> 001c0000 00041000 0000f000
<anonymous> 00210000 00006000 0000a000
[snip]
Totals 13ab5000 6c54b000
Largest available memory block is 1237188608 bytes (1179.88 MB) located at address 11190000

MathWorks Support

1 Answer

Answer by MathWorks Support Team on 27 Jun 2009
 Accepted Answer

To suppress the text output of the FEATURE command, download the attached files and execute the following code:
[num, str]=memavailable
MEMAVAILABLE returns the numerical number of bytes in NUM, and a string representation in STR.

  0 Comments

Sign in to comment.