How can i calculate memory cost of my program?

I implement a program in matlab with many instructions, I want to compute the memory cost of the whole algorithm

 Accepted Answer

To compute the memory cost of a MATLAB program, we can use the whos function to display information about the variables in the MATLAB workspace. The whos function displays the name, size, and class of each variable, as well as the amount of memory it occupies in bytes.
More details about the whos function can be found here.

More Answers (0)

Categories

Find more on Function Creation in Help Center and File Exchange

Products

Release

R2017a

Tags

Asked:

on 27 Apr 2021

Answered:

on 2 Jun 2023

Community Treasure Hunt

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

Start Hunting!