Rank: 1446 based on 59 downloads (last 30 days) and 4 files submitted
photo

James Slegers

E-mail
Company/University
Iowa State University

Personal Profile:
Professional Interests:
Electrical Power Engineering

 

Watch this Author's files

 

Files Posted by James View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Jun 2012 Screenshot kml2struct Import a .kml file as a series of shapefile structs. Like kml_shapefile, but more stable. Author: James Slegers import kml, shapefile, kml, struct, kml_shapefile 18 1
  • 4.0
4.0 | 1 rating
02 Feb 2012 Screenshot struct2csv Output a structure to a .csv file, with column headers Author: James Slegers csv, struct2csv, struct, header, data export 38 1
04 Mar 2011 Screenshot subplace SUBPLACE Computes 'Position' vectors for a center-aligned set of subplots of varying row lengths Author: James Slegers subplot, plot, visualization, position, figure, axis 1 1
  • 5.0
5.0 | 1 rating
10 Feb 2011 tf2tex Creates a Tex string based on a transfer function object Author: James Slegers control design, data export, tf, transfer function, tex, string 2 0
Comments and Ratings on James' Files View all
Updated File Comment by Comments Rating
18 Apr 2013 struct2csv Output a structure to a .csv file, with column headers Author: James Slegers Sebastian

Hi,

thanks a lot for this file!

But I found a little bug when a column is a "n x 1 char".

I fixed it with "an elseif":
c = getfield(s,headers{jj});
d = size(c);
if isnumeric(c)
str = [num2str(c(ii,kk)),','];
elseif d(2)==1
str = ['"',c(ii),'",'];
else
str = ['"',c{ii,kk},'",'];
end

07 Jun 2012 kml2struct Import a .kml file as a series of shapefile structs. Like kml_shapefile, but more stable. Author: James Slegers Stephen

This works well, but it has a couple minor bugs.
1. The "cell2double" function on line 77 should be replaced with "str2double".
2. The regular expressions on lines 44-45 fail to trim off the <description> tags.

07 Jun 2012 kml2struct Import a .kml file as a series of shapefile structs. Like kml_shapefile, but more stable. Author: James Slegers Stephen

25 Aug 2011 subplace SUBPLACE Computes 'Position' vectors for a center-aligned set of subplots of varying row lengths Author: James Slegers grega

Nice one! Like simplicity...Thank you!

Top Tags Applied by James
data export, struct, control design, csv, header
Files Tagged by James View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Jun 2012 Screenshot kml2struct Import a .kml file as a series of shapefile structs. Like kml_shapefile, but more stable. Author: James Slegers import kml, shapefile, kml, struct, kml_shapefile 18 1
  • 4.0
4.0 | 1 rating
02 Feb 2012 Screenshot struct2csv Output a structure to a .csv file, with column headers Author: James Slegers csv, struct2csv, struct, header, data export 38 1
04 Mar 2011 Screenshot subplace SUBPLACE Computes 'Position' vectors for a center-aligned set of subplots of varying row lengths Author: James Slegers subplot, plot, visualization, position, figure, axis 1 1
  • 5.0
5.0 | 1 rating
10 Feb 2011 tf2tex Creates a Tex string based on a transfer function object Author: James Slegers control design, data export, tf, transfer function, tex, string 2 0

Contact us