Rank: 286 based on 270 downloads (last 30 days) and 8 files submitted
photo

Richard Crozier

E-mail
Company/University
The University of Edinburgh

Personal Profile:
Professional Interests:
Electrical Engineering, Renewable Energy

 

Watch this Author's files

 

Files Posted by Richard View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Apr 2013 xlsrange Generates an excel range from row and column number Author: Richard Crozier xls, excel 26 0
09 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier format, text, output, table 40 8
  • 5.0
5.0 | 5 ratings
17 Dec 2012 Screenshot tightfig Remove excess margins from figures. Author: Richard Crozier figure, axes, magrgin, margins, tight, excess 153 8
  • 5.0
5.0 | 2 ratings
14 May 2012 samesize Determine if all inputs are the same size in all dimensions. Author: Richard Crozier size, dimensions, array, matrix, utility 5 3
  • 5.0
5.0 | 1 rating
05 Feb 2012 gapolyfitn optimises the functional form of a multi-dimensional polynomial fit to model data Author: Richard Crozier optimization, linear regression, modelling, genetic algorithm, ga, polynomial 16 3
  • 4.0
4.0 | 1 rating
Comments and Ratings by Richard View all
Updated File Comments Rating
20 May 2013 Euclidean Distance The Euclidean distance between points p and q is the length of the line segment connecting them. Author: Daniel Bromand

Does not improve on ipdm from the file exchange

https://www.mathworks.co.uk/matlabcentral/fileexchange/18937-ipdm-inter-point-distance-matrix

23 Apr 2013 Grid of points within a polygon This function generates an array of points that lie within a given polygon Author: Sulimon Sattari

There's also John D'errico's inhull

http://www.mathworks.co.uk/matlabcentral/fileexchange/10226-inhull

to do the same thing, and it works in any number of dimensions.

22 Apr 2013 Column Converter for Excel Convert Excel column letters to numbers or vice versa, for processing data to/from XLSREAD/XLSWRITE. Author: Kevin Crosby

Nice, thanks.

12 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier

@arnold,

I'm not seeing this error on either 64 Bit Linux with R2011a or Win 32 R2012a, is this the exact code you ran?

07 Mar 2013 2D trapezoidal rule Calculates a double integral using trapezoidal rule. Author: Mohammed Sadeq Al-Rawi

Could be replaced with a single line:

result = trapz(x,trapz(y,mat,1),2);

Comments and Ratings on Richard's Files View all
Updated File Comment by Comments Rating
12 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier Crozier, Richard

@arnold,

I'm not seeing this error on either 64 Bit Linux with R2011a or Win 32 R2012a, is this the exact code you ran?

12 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier arnold

Hi Richard, I get this error when executing your example 2, any idea why?

====================================
>> colheadings = {'number of projects','sales','profit'};
rowheadings = {'Jimmy Slick', 'Norman Noob'};
data = [3 rand(1) rand(1); 1 rand(1) rand(1)];
wid = 16;
fms = {'d'};

colsep = ' & ';
rowending = ' \\';

fileID = 1;

displaytable(data,colheadings,wid,fms,rowheadings,fileID,colsep,rowending);
Maximum recursion limit of 500 reached. Use
set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your
available stack space can
crash MATLAB and/or your computer.

Error in displaytable

08 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier Manohar, Sanjay

Could you update this bug:

line 338

str = sprintf(['%',num2str(wid(j)),'g'],data(i,j));

should be

str = sprintf(['%',num2str(wid(j)),'g'],data{i,j});

Thanks for the useful script.
Sanjay

08 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier Manohar, Sanjay

Could you update this bug:

line 338

str = sprintf(['%',num2str(wid(j)),'g'],data(i,j));

should be

str = sprintf(['%',num2str(wid(j)),'g'],data{i,j});

Thanks for the useful script.
Sanjay

19 Mar 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier Sarkar, Soumyadipta

Great function. Much needed one. Please add some word recognition features so that the colheadings and rowheadings can be wraped around for a fixed width in a meaningful way.

Top Tags Applied by Richard
fit, array, axes, curve, dimensions
Files Tagged by Richard View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Apr 2013 xlsrange Generates an excel range from row and column number Author: Richard Crozier xls, excel 26 0
09 Apr 2013 Display Formatted Text Table of Data Display data, mixed numeric and strings with optional col and row headers and your choice of col sep Author: Richard Crozier format, text, output, table 40 8
  • 5.0
5.0 | 5 ratings
17 Dec 2012 Screenshot tightfig Remove excess margins from figures. Author: Richard Crozier figure, axes, magrgin, margins, tight, excess 153 8
  • 5.0
5.0 | 2 ratings
19 Nov 2012 UNDERSTANDING & USING DC-AC INVERTERS UNDERSTANDING & USING DC-AC INVERTERS Author: Emad power, spam 32 1
14 May 2012 samesize Determine if all inputs are the same size in all dimensions. Author: Richard Crozier size, dimensions, array, matrix, utility 5 3
  • 5.0
5.0 | 1 rating

Contact us