Rank: 920 based on 81 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
18 Jun 2013 Screenshot struct2csv Output a structure to a .csv file, with column headers Author: James Slegers csv, struct2csv, struct, header, data export 63 3
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 16 1
  • 4.0
4.0 | 2 ratings
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 1 0
Comments and Ratings on James' Files View all
Updated File Comment by Comments Rating
25 Jun 2013 kml2struct Import a .kml file as a series of shapefile structs. Like kml_shapefile, but more stable. Author: James Slegers Vieira, Joao Luiz

24 Jun 2013 struct2csv Output a structure to a .csv file, with column headers Author: James Slegers Kate

Nevermind the previous comment, simple path issue.

24 Jun 2013 struct2csv Output a structure to a .csv file, with column headers Author: James Slegers Kate

Any clue why I would get this type of error message?

>> struct2csv(sitetable, 'info.csv')
Undefined function 'struct2csv' for input arguments of type 'struct'.

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.

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
18 Jun 2013 Screenshot struct2csv Output a structure to a .csv file, with column headers Author: James Slegers csv, struct2csv, struct, header, data export 63 3
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 16 1
  • 4.0
4.0 | 2 ratings
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 1 0

Contact us