Hello every one,
I use the matlab function memory () to calculate the memory cost of my matlab program the result is as follow:MemUsedMATLAB: 1.6919e+09
I have to many value like that I save them in Excel table so how can I convert these values to Mega byte.
Thank you

 Akzeptierte Antwort

dpb
dpb am 18 Jun. 2021
Bearbeitet: dpb am 18 Jun. 2021

0 Stimmen

>> m=memory;
>> sprintf('%.0f MB',m.MemUsedMATLAB/(1024^2))
ans =
'2305 MB'
>>

Weitere Antworten (0)

Produkte

Version

R2017a

Tags

Gefragt:

am 18 Jun. 2021

Bearbeitet:

dpb
am 18 Jun. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by