Rank: 1028 based on 136 downloads (last 30 days) and 19 files submitted
photo

Brenden Epps

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Brenden Epps 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 6 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 10 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 8 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 6 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 22 6
  • 3.0
3.0 | 4 ratings
Comments and Ratings by Brenden Epps
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 Epps' Files View all
Updated File Comment by Comments Rating
20 Aug 2014 clr == clear all; close all; clc; clr clears your workspace and command window, so you can start fresh. Author: Brenden Epps Jonathan Suever

I have uploaded a version that I use that does a decent amount of error checking prior to running the commands to ensure that there are no issues. It also incorporates fixes for a lot of the questions and concerns voiced here.

http://www.mathworks.com/matlabcentral/fileexchange/47609-nuke

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 Jan Simon

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

Contact us