Rank: 218 based on 434 downloads (last 30 days) and 18 files submitted
photo

Kevin Bartlett

E-mail
Company/University
University of Victoria
Lat/Long
48.4618, -123.3094

Personal Profile:
Professional Interests:
physical oceanography

 

Watch this Author's files

 

Files Posted by Kevin View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Sep 2013 Screenshot Web-browser viewable GUI animations of .PNGs, .GIFs, etc. Creates javascript/html GUI-driven animation of still images (GIFs, JPEGs, etc.). Author: Kevin Bartlett gui, image processing, movie, animation, animated, javascript 17 3
  • 4.33333
4.3 | 3 ratings
26 Apr 2013 Screenshot Save and load Matlab "projects" in editor Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path). Author: Kevin Bartlett editor, project, programming, tool, task management, ide 33 4
  • 4.5
4.5 | 2 ratings
22 Apr 2013 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett communications, network, tcpip, tcp, socket 91 55
  • 4.94118
4.9 | 17 ratings
02 Apr 2012 Error-tolerant parsing of newline-delimited data Adaptive parsing of newline-separated data. Handles bad lines WITHOUT reading line-by-line. Author: Kevin Bartlett parse, parsing, newline, ascii, nmea, gps 15 0
07 Feb 2012 Screenshot Graphic depiction of timelines Makes horizontal timeline plot. Timelines can start and stop either once or multiple times. Author: Kevin Bartlett time, graphics, plot, timeline, project management 14 0
Comments and Ratings by Kevin View all
Updated File Comments Rating
02 Oct 2014 Save and load Matlab "projects" in editor Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path). Author: Kevin Bartlett

@Yoav L--No "quick fix" for that. The save_matproj function saves matprojData.workingDir as "pwd"; even more complicated, each filename of the mfiles open in the editor is saved as a fully-qualified filename, so you'd have to deal with that issue, too.

One solution I can think of would be to add two additional input arguments: one would contain the portion of the absolute pathname that you want to ignore (e.g., '/home/kevin/myProjectsDir/'); the second would contain the string you'd want to replace that portion of the pathname with (e.g., '../../'). In the code, then, the substitution would change (for example) '/home/kevin/myProjectsDir/todaysProject/myNiceMfile.m' to '../../todaysProject/myNiceMfile.m'.

Another alternative would be to work on the level of the operating system. You could use symbolic links if you're running on a Unix/Mac system or the Microsoft equivalent, if such a thing exists in Windows.

08 Sep 2014 dial Rotary graphical user interface control Author: Kevin Bartlett

@Andre Silva--Try the following code, which makes use of the "find_dial" method:

dial_demo;
dialObj = dial.find_dial('noSnapDial','-1');
draggableComponents = [dialObj.dialFaceHndl dialObj.circlePointerHndl dialObj.linePointerHndl];
set(draggableComponents,'ButtonDownFcn',[]);
set(dialObj,'Value',6)
set(findobj('Tag','noSnapText'),'string',sprintf('%f',dialObj.Value));

The "no snap" dial (on the far left of the figure) will no longer be draggable by mouse, and the value (and the associated text object) is set to 6.

27 May 2014 htmlTableToCell Parses HTML file and retrieves specified table as cell. Author: Steinar Elgsæter

Great timesaver, and easy to use.

26 May 2014 A simple UDP communications application Sends/receives UDP packets using Matlab's Java interface. Author: Kevin Bartlett

@exosceleton--My guess would be that Matlab's java machine is not doing garbage collecting properly (I've seen similar problems with Matlab's implementation of database cursor objects). So when you go through 256 IP addresses, you're creating 256 Java Socket objects, and they're clogging up Matlab's allocated Java space and slowing down your computer. As a workaround, why not send a single packet out to your network's broadcast address (see http://en.wikipedia.org/wiki/Broadcast_address)? You should be able to use 255.255.255.255 in your call to jupd.m. All the machines on your network will receive the UDP packet, but only the machine you're looking for will know how to respond to the specific UDP packet you send. Once this "handshake" is complete, the two computers will know each other's IP addresses, and you will no longer need to use the broadcast address.

02 May 2014 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett

Well done, Carsten! I'm glad you were able to get it to work. Hopefully your solution will also be useful for other users. Cheers, Kevin.

Comments and Ratings on Kevin's Files View all
Updated File Comment by Comments Rating
02 Oct 2014 Save and load Matlab "projects" in editor Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path). Author: Kevin Bartlett Bartlett, Kevin

@Yoav L--No "quick fix" for that. The save_matproj function saves matprojData.workingDir as "pwd"; even more complicated, each filename of the mfiles open in the editor is saved as a fully-qualified filename, so you'd have to deal with that issue, too.

One solution I can think of would be to add two additional input arguments: one would contain the portion of the absolute pathname that you want to ignore (e.g., '/home/kevin/myProjectsDir/'); the second would contain the string you'd want to replace that portion of the pathname with (e.g., '../../'). In the code, then, the substitution would change (for example) '/home/kevin/myProjectsDir/todaysProject/myNiceMfile.m' to '../../todaysProject/myNiceMfile.m'.

Another alternative would be to work on the level of the operating system. You could use symbolic links if you're running on a Unix/Mac system or the Microsoft equivalent, if such a thing exists in Windows.

01 Oct 2014 Save and load Matlab "projects" in editor Saves and loads Matlab "projects" in editor (currently-open files, working directory, search path). Author: Kevin Bartlett L, Yoav

Very useful submission!
I am trying to modify it a bit so it can handle relative paths, making it possible to switch projects on different computers from a shared folder (that might have a different absolute path). any suggestions for quick fixes?

09 Sep 2014 dial Rotary graphical user interface control Author: Kevin Bartlett Silva, Andre

Great I borrowed the draggableComponents line and it worked from there. Thanks again.

08 Sep 2014 dial Rotary graphical user interface control Author: Kevin Bartlett Bartlett, Kevin

@Andre Silva--Try the following code, which makes use of the "find_dial" method:

dial_demo;
dialObj = dial.find_dial('noSnapDial','-1');
draggableComponents = [dialObj.dialFaceHndl dialObj.circlePointerHndl dialObj.linePointerHndl];
set(draggableComponents,'ButtonDownFcn',[]);
set(dialObj,'Value',6)
set(findobj('Tag','noSnapText'),'string',sprintf('%f',dialObj.Value));

The "no snap" dial (on the far left of the figure) will no longer be draggable by mouse, and the value (and the associated text object) is set to 6.

02 Sep 2014 dial Rotary graphical user interface control Author: Kevin Bartlett Silva, Andre

How to disable the user controlled dial. I want to have the dial move based on a condition that happens in the callback. Any way to do this?

Thanks!

Contact us