Rank: 132 based on 365 downloads (last 30 days) and 15 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
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 18 0
03 Feb 2012 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett tcp, communications, network, tcpip, socket 195 33
  • 4.91667
4.9 | 12 ratings
04 Jan 2012 Screenshot Annotated cropping of data plots Makes a rectangular crop box in axes 1 with lines linking it to the corners of axes 2. Author: Kevin Bartlett graphics, plotting, lines, crop, cropping 22 0
09 Dec 2011 Open new m-file with standard header text in editor Creates a new m-file with standard function header text. Author: Kevin Bartlett development, editor, boilerplate, header, function 7 2
09 Dec 2011 Extremely simple version control for Matlab code Creates sequentially-numbered backups of existing m-file for safety while editing. Author: Kevin Bartlett source control, development, development environme..., version control, revision control 5 0
Comments and Ratings by Kevin View all
Updated File Comments Rating
12 Dec 2011 Open new m-file with standard header text in editor Creates a new m-file with standard function header text. Author: Kevin Bartlett

Thanks for pointing those out. I searched the FileExchange for similar functions before posting newmf.m, but InsertHeader (which does not do quite the same thing) was the only one I found. I guess I didn't look hard enough.

23 Nov 2011 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

Hi Micah,

I hadn't realised that a negative nrFramesTotal value denoted an estimated number of frames. That makes the process of searching for the last frame much more straightforward than the method I used in mmcount.

Thanks,
Kevin

23 Nov 2011 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

See my comment on Nov.8, 2011.

I've written a program that uses mmread() to count the number of frames in a .asf video without reading in the whole file (http://www.mathworks.com/matlabcentral/fileexchange/33885-mmcount-m). This way, it is possible to read in just the first and last frames of a file without worrying about running out of memory; it is also much faster than reading in the whole file.

I've given mmread() a rating of 4; the only reason it isn't a 5 is that it is missing this functionality. Hopefully it will be added sometime soon, and I'll be able to retire mmcount().

08 Nov 2011 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

mmread is working perfectly, but I'm running out of memory. All I want is the first and last frame of a (very large) asf file.
  video = mmread('tmp.asf',1); works for the first frame...is there a way to determine the number of the last frame so I could do
 video=mmread('tmp.asf',lastFrameNum);
without reading in the whole file?

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

Hi Nor, are you connecting two Matlab sessions together or trying to connect Matlab with some other software? Are you on Windows? Mac? Linux? What error message do you get when you fail to make a connection?

Probably the easiest way to play with jtcp.m is to get two Matlab sessions running on one computer (assuming your licence permits it). Assign one session the role of "client" and the other the role of "server and follow the example code in jtcp.m's help, with "client" lines being executed in the client session and the "server" lines being executed in the server session. EXECUTE THE LINES IN THE ORDER SHOWN IN THE HELP EXAMPLES. You can substitute a higher value than 2000 milliseconds for the timeout, if that makes things easier. I have used port 21566 in the examples; this port will have to be open in your firewall, or the firewall turned off.
Kevin.

Comments and Ratings on Kevin's Files View all
Updated File Comment by Comments Rating
20 Jan 2012 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett Rutishauser, Ueli
12 Dec 2011 Open new m-file with standard header text in editor Creates a new m-file with standard function header text. Author: Kevin Bartlett Bartlett, Kevin

Thanks for pointing those out. I searched the FileExchange for similar functions before posting newmf.m, but InsertHeader (which does not do quite the same thing) was the only one I found. I guess I didn't look hard enough.

12 Dec 2011 Open new m-file with standard header text in editor Creates a new m-file with standard function header text. Author: Kevin Bartlett Simon, Jan

See also: http://www.mathworks.com/matlabcentral/fileexchange/4908-m-file-header-template , http://www.mathworks.com/matlabcentral/fileexchange/12323 , http://www.mathworks.com/matlabcentral/fileexchange/6408

05 Dec 2011 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett Kosenkov, Alexander
08 Nov 2011 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett Kleissas, Dean
Top Tags Applied by Kevin
communications, development, oceanography, ctd, development environment
Files Tagged by Kevin View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
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 18 0
03 Feb 2012 TCP/IP Communications in Matlab Sends/receives TCP packets using Matlab's Java interface. Now handles matrices and cell arrays, etc. Author: Kevin Bartlett tcp, communications, network, tcpip, socket 195 33
  • 4.91667
4.9 | 12 ratings
04 Jan 2012 Screenshot Annotated cropping of data plots Makes a rectangular crop box in axes 1 with lines linking it to the corners of axes 2. Author: Kevin Bartlett graphics, plotting, lines, crop, cropping 22 0
09 Dec 2011 Open new m-file with standard header text in editor Creates a new m-file with standard function header text. Author: Kevin Bartlett development, editor, boilerplate, header, function 7 2
09 Dec 2011 Extremely simple version control for Matlab code Creates sequentially-numbered backups of existing m-file for safety while editing. Author: Kevin Bartlett source control, development, development environme..., version control, revision control 5 0

Contact us at files@mathworks.com