Rank: 220 based on 261 downloads (last 30 days) and 6 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
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 74 3
  • 4.0
4.0 | 1 rating
03 Feb 2012 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 65 2
  • 5.0
5.0 | 1 rating
24 Jan 2012 odesplit Splits evaluation of a system of differential equations into chunks to avoid out of memory errors Author: Richard Crozier ode, split 14 4
19 Jan 2012 Screenshot tightfig Remove excess margins from figures. Author: Richard Crozier figure, axes, magrgin, margins, tight, excess 67 2
  • 5.0
5.0 | 1 rating
06 Oct 2009 randMat Generate random numbers uniformally in a given range or matching a given normal distribution Author: Richard Crozier random numbers, range, uniform distribution, normal distribution 16 0
Comments and Ratings by Richard View all
Updated File Comments Rating
10 Feb 2012 Find the "I J K" indices of any element number "e" in the 2D or 3D matrix Many a times it may be required to identify the indices, 'i','j' and 'k' values of an element number Author: sunil anandatheertha

Or you could use matlab built-in function ind2sub, e.g.

[row,col,plane] = ind2sub(rcp,e)

e.g.

>> [row,col,plane] = ind2sub([10 10 10],79)

row =

     9

col =

     8

plane =

     1

03 Feb 2012 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

Thanks Andrew, I have updated the file with your fix.

19 Jan 2012 tightfig Remove excess margins from figures. Author: Richard Crozier

Thanks Thomas, I've submitted a new version with the fix.

25 Oct 2011 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman

Because of the nested try catch in sshfrommatlab.m, the error 'SSHFROMMATLAB could not find the SSH2 java package' is always thrown, even if the actual error is that the connection was unsuccessful. This could be fixed with something like:

%
% Build the connection using the JSch package
%
  try
    import ch.ethz.ssh2.*;
    try
      channel = Connection(hostName);
      channel.connect();
    catch
      error('SSHFRMMATLAB:noconnection', ...
            ['Error: SSHFROMMATLAB could not connect to the remote machine %s ...'],...
            hostName);
    end
  catch
      
      LE = lasterror;
      
      if isequal(LE.identifier, 'SSHFRMMATLAB:noconnection')
          rethrow(LE);
      else
          error('Error: SSHFROMMATLAB could not find the SSH2 java package');
      end
      
  end

20 Sep 2011 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman

Great tool thanks, it work with the beta 251 build which I accidentally downloaded too.

Comments and Ratings on Richard's Files View all
Updated File Comment by Comments Rating
03 Feb 2012 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

Thanks Andrew, I have updated the file with your fix.

03 Feb 2012 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 Davis, Andrew

Works great, exactly what I wanted for quick table output. My only criticism is it prints a backspace character to the file if you're not using fid=1, so I added "&& fid == 1" to the conditional statements on lines 219 and 273.

19 Jan 2012 tightfig Remove excess margins from figures. Author: Richard Crozier Crozier, Richard

Thanks Thomas, I've submitted a new version with the fix.

16 Jan 2012 tightfig Remove excess margins from figures. Author: Richard Crozier Thomas

Great work... i was just going to implement it myself... but here it is ;) Thank you.

Just a minor issue:
Restoring the original axes units fails when there is only a single axes object in the figure:
            
set(hax(i), 'Units', origaxunits{i});

... since origaxunits is no cell array then. A simple if else does the trick.

25 Jul 2011 gapolyfitn optimises the functional form of a multi-dimensional polynomial fit to model data Author: Richard Crozier Crozier, Richard

@Andrew Newell, I'm not sure why polyfitn has been removed. I will see if the author is happy for me to provide a copy of polyfitn with gapolyfitn.

Top Tags Applied by Richard
fit, axes, curve, excess, figure
Files Tagged by Richard View all
Updated   File Tags Downloads
(last 30 days)
Comments 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 74 3
  • 4.0
4.0 | 1 rating
03 Feb 2012 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 65 2
  • 5.0
5.0 | 1 rating
24 Jan 2012 odesplit Splits evaluation of a system of differential equations into chunks to avoid out of memory errors Author: Richard Crozier ode, split 14 4
19 Jan 2012 Screenshot tightfig Remove excess margins from figures. Author: Richard Crozier figure, axes, magrgin, margins, tight, excess 67 2
  • 5.0
5.0 | 1 rating
23 Aug 2010 Screenshot Three Phase Sinosoidal PWM based Rectifier PWM Rectifier Author: Syed Abdul Rahman Kashif pwm, power electronics, rectifier, sinusoidal pwm, converter, electronics 59 1
  • 3.0
3.0 | 1 rating

Contact us at files@mathworks.com