Rank: 469 based on 241 downloads (last 30 days) and 19 files submitted
photo

Brenden Epps

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Brenden View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Jun 2012 MEM displays memory usage to the command window. MEM displays memory usage to the command window. Author: Brenden Epps memory usage 12 4
  • 1.0
1.0 | 1 rating
11 Jun 2012 MINN(x) returns the overall minimum value of matrix x MINN(x) returns the overall minimum value of matrix x Author: Brenden Epps min 16 3
  • 1.0
1.0 | 2 ratings
11 Jun 2012 disptime(T) displays time T in format: hr min sec disptime(T) displays time T (given in seconds) in format: hr min sec Author: Brenden Epps disp 12 0
11 Jun 2012 fig executes: figure; hold on, box on, grid on, fig executes: figure; hold on, box on, grid on, Author: Brenden Epps figure, grid, box 19 0
11 Jun 2012 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps clear, close, clc, potw, pick of the week 28 5
  • 3.0
3.0 | 4 ratings
Comments and Ratings by Brenden
Updated File Comments Rating
10 Jun 2012 MEM displays memory usage to the command window. MEM displays memory usage to the command window. Author: Brenden Epps

As many programmers have experienced, Matlab grinds to a near standstill when large amounts of memory are used in the workspace. MEM gives a succinct report of the memory used, so the programmer can see which variables are using the most memory (and thus causing the slow-down).

This function is only useful for programmers who develop codes containing hundreds of variables, in which case they might not remember the size of each variable off the top of their head. MEM helps the programmer determine how best to streamline the memory usage and improve the speed of his or her code.

Comments and Ratings on Brenden's Files View all
Updated File Comment by Comments Rating
31 Oct 2013 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps Nickolas

You could add this to your code to clear the Command History as well:

com.mathworks.mlservices.MLCommandHistoryServices.removeAll;

Just thought this was a nice thing to add to it. Thanks!

19 Jul 2013 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps Evgeny Pr

сlear all, close all, clc
go! go! go! :)))

Oops... All debug break points has been cleared! This is MATLAB style, guy!

12 Jun 2013 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps William

This is a great function for saving time when you are doing trial-and-error type coding with figures and need to run an m file over and over again as you tweak it. i actually had a script version of this named 'gameover' but 'clr' is nice and curt. this function won't appeal to users like Jan that are doing debugging.

07 Jun 2013 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps Simon, Jan

I forgot to mention, that "clear all" removes all debugger breakpoints also. And everything, which impedes debugging is a bad programming practize.

07 Jun 2013 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps Simon, Jan

Contact us