From: fiza khalid on 25 Jun 2010 14:44 i want to calculate the memory used by my function which i am try to run in matlab can anyone help me to try this.which function is used for memory display please tell me if someone knows about it. thanx in advance.
From: Matt J on 25 Jun 2010 15:10 "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <i02te6$8bm$1(a)fred.mathworks.com>... > i want to calculate the memory used by my function which i am try to run in matlab > can anyone help me to try this.which function is used for memory display please tell me if someone knows about it. > thanx in advance. =========== Your problem is not fully formulated because the "memory used by a function" is not a well-defined thing. In MATLAB, a variable in a function's workspace can share memory with other variables that reside either in the same workspace or outside of it. So, how would you define which blocks of memory that a given function owns?
From: Jan Simon on 25 Jun 2010 15:30 Dear Fiza, > i want to calculate the memory used by my function which i am try to run in matlab > can anyone help me to try this.which function is used for memory display please tell me if someone knows about it. See: whos feature memstats FEX: http://www.mathworks.com/matlabcentral/fileexchange/26662 Good luck, Jan
From: dpb on 25 Jun 2010 15:52 fiza khalid wrote: > i want to calculate the memory used by my function which i am try to run > in matlab > can anyone help me to try this.which function is used for memory display > please tell me if someone knows about it. > thanx in advance. Probably best thing would be to look at output of the "WHO" or "WHOS" command before and during and after your function to get a feel for what memory was allocated during and retained after calling the function in question. doc whos % and friends --
From: fiza khalid on 4 Jul 2010 07:20
"Matt J " <mattjacREMOVE(a)THISieee.spam> wrote in message <i02uuj$ggv$1(a)fred.mathworks.com>... > "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <i02te6$8bm$1(a)fred.mathworks.com>... > > i want to calculate the memory used by my function which i am try to run in matlab > > can anyone help me to try this.which function is used for memory display please tell me if someone knows about it. > > thanx in advance. > =========== > > Your problem is not fully formulated because the "memory used by a function" is not a well-defined thing. > > In MATLAB, a variable in a function's workspace can share memory with other variables that reside either in the same workspace or outside of it. So, how would you define which blocks of memory that a given function owns? >>i want to know how much processor memory is being used while i am running my program not the single variable memory but the as a whole memory taken by my program how can i do that.help me. |