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

1 次查看(过去 30 天)
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 Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by