How to convert memory to Megabyte

34 ビュー (過去 30 日間)
Mira le
Mira le 2021 年 6 月 18 日
編集済み: dpb 2021 年 6 月 18 日
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

採用された回答

dpb
dpb 2021 年 6 月 18 日
編集済み: dpb 2021 年 6 月 18 日
>> m=memory;
>> sprintf('%.0f MB',m.MemUsedMATLAB/(1024^2))
ans =
'2305 MB'
>>

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by