Rank: 2387 based on 29 downloads (last 30 days) and 5 files submitted
photo

Jesse Hopkins

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Jesse View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
11 Feb 2013 Screenshot Scrolling Memory Monitor Displays recent history of Matlab & Java memory usage. Author: Jesse Hopkins java, memory 7 0
20 Jan 2012 issubclass Determines if a class is a subclass of another class. Author: Jesse Hopkins oop 2 0
26 Jul 2010 Screenshot Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins compression java, compression 10 11
  • 3.0
3.0 | 1 rating
06 Nov 2009 Explore Convenient way to open windows explorer. Author: Jesse Hopkins windows explorer 3 5
  • 3.0
3.0 | 3 ratings
27 Oct 2009 genpath_exclude Executes like genpath, but can ignore specified directories. Author: Jesse Hopkins svn, cm, cvs, path 7 3
  • 5.0
5.0 | 1 rating
Comments and Ratings by Jesse View all
Updated File Comments Rating
05 Dec 2012 uipickfiles: uigetfile on steroids Many-featured, platform independent file and directory picker. Author: Douglas Schwarz

Thanks for this useful tool! One quick note, around line 205 you use exist(..,'file') and exist(..,'dir'). I've found these to be problematic, as exist will return true if it finds the input anywhere on the matlab path.

This actually did cause an error in my case, when I passed in a directory called "Workspace". The directory had been deleted, however exist('Workspace','file') returns true due to workspace.m in the matlab install directory. The subsequent call do dir returned an empty matrix, causing an assignment error.

I've found the following functions more reliable for performing isdir/isfile type operations:
function x = myisdir(str)
x = false;
tmp = dir(str);
if length(tmp) > 1 % if str is a dir, then tmp will always contain at least '.' and '..'
x = true;
end

function x = isfile(str)
x = false;
tmp = dir(str);

if ~isempty(tmp) && length(tmp) == 1
if ~tmp.isdir
x = true;
end
end

25 Oct 2012 WHICHX File search within MATLAB search path using wildcards. Author: Elmar Tarajan

25 Oct 2012 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins

Hamid, glad you found this useful. Java is used to implement the compression, you can see this pretty clearly in the "compress" method. I haven't tried it, but I think it will work change the line "g = java.util.zip.GZIPOutputStream(f)" to "g = java.util.zip.ZipOutputStream(f)".

23 Oct 2012 tracer4m tracer4m traces calls to methods and functions. Author: per isakson

Wow thank you for this incredibly useful utility. I had one hickup which was user error. I used the output of "dir" to pass into the setup function, which broke the setup. Worked fine once I stripped off the ".m" extension from the filenames returned by dir.

Afterwords, everything "just worked", and I was able to get incredibly useful traces. I had attempted something simliar in the past, but never could get anything working without instrumenting the code. Well done using mlint & conditional breakpoint side effects to get function traces without needing to modify code.

Question: Why call pause(0.001) in TraceHistory.add?

16 Oct 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Looks like my comment didn't come through on the last rating. This has been a very useful toolbox, but we are having a minor cosmetic issue with VBoxFlex. It seems that about 50% of the time, moving across a flex boundary from right-to-left will cause the pointer to get stuck in the "resize" icon. If I move very slowly across the boundary (right-to-left), then 100% of the time the pointer will get stuck in the "resize" icon, but if I move very quickly across the boundary then it doesn't seem to get stuck in the resize icon. Note that the pointer icon does go back to the normal icon after I leave the layout, or move across the boundary again left-to-right. Any thoughts?

Comments and Ratings on Jesse's Files View all
Updated File Comment by Comments Rating
25 Oct 2012 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins Hopkins, Jesse

Hamid, glad you found this useful. Java is used to implement the compression, you can see this pretty clearly in the "compress" method. I haven't tried it, but I think it will work change the line "g = java.util.zip.GZIPOutputStream(f)" to "g = java.util.zip.ZipOutputStream(f)".

30 Aug 2012 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins Hamid

Thanks for sharing this.
Is there a way I can compress/decompress using ZIP format (as opposed to GZIP)?

08 Jun 2011 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins Hopkins, Jesse

I saw similar results as Sebastiaan. My usage is quite different, as in my environment this is used to compress and decompress many small matlab structures stored within hundreds Simulink blocks (as userdata) one at a time. There was no noticeable speed improvement, as the time was dominated by the GZIP method.

13 May 2011 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins Sebastiaan

Thanks for the suggestion. I have tried it with my version (which chunks the data in 5 MiB blocks to prevent running out of heap space), but the speed-up is not measurable. Compressing ~120 MiB takes 0.035 seconds for the custom typecast and 0.161 for the built-in function. In contrast, the java GZIP function takes 7 seconds (and uses only 1 thread).

However, sharing pointers is of course a much nicer solution.

11 May 2011 Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins Hopkins, Jesse

Thanks for the suggestion Jan, I'll take a look into that.

Top Tags Applied by Jesse
cm, compression java, cvs, gui, java
Files Tagged by Jesse View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Apr 2013 Screenshot GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff gui, boxlayout, gridlayout, java, pick of the week, layout 456 187
  • 4.92188
4.9 | 76 ratings
11 Feb 2013 Screenshot Scrolling Memory Monitor Displays recent history of Matlab & Java memory usage. Author: Jesse Hopkins java, memory 7 0
20 Jan 2012 issubclass Determines if a class is a subclass of another class. Author: Jesse Hopkins oop 2 0
26 Jul 2010 Screenshot Compression Routines Compress Matlab variables in the workspace. (supports cells, structs, matrices, strings, objects) Author: Jesse Hopkins compression java, compression 10 11
  • 3.0
3.0 | 1 rating
06 Nov 2009 Explore Convenient way to open windows explorer. Author: Jesse Hopkins windows explorer 3 5
  • 3.0
3.0 | 3 ratings

Contact us