Rank: 166 based on 442 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 18 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 25 2
  • 4.0
4.0 | 1 rating
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 131 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 14 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 25 0
Comments and Ratings by Kevin View all
Updated File Comments Rating
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.

24 Apr 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

@Carsten. Sorry, I don't think I'm going to be able to help you with this. It isn't a problem I can duplicate, so debugging isn't something I can do. If you do figure it out, please let me know.

Comments and Ratings on Kevin's Files View all
Updated File Comment by Comments Rating
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!

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

@Kevin Bartlett
That seems to be the smart way indeed. Thanks

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

@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.

Contact us