Rank: 4801 based on 24 downloads (last 30 days) and 2 files submitted
photo

Roger Parkyn

E-mail
Company/University
Hydro Tasmania

Personal Profile:

 

Watch this Author's files

 

Files Posted by Roger Parkyn View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 May 2013 Screenshot Duration (CDF) Plot A simple plotter for ranked data against empirical probability. Author: Roger Parkyn hydrology, probability, duration plot, cdf, cumulative density fu..., price duration curve 11 0
01 May 2013 Screenshot Html Table Writer Writes a cell-array to an html file. Numerous formatting options are available. Author: Roger Parkyn data export, html, table, html table, output, publish 13 2
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Roger Parkyn View all
Updated File Comments Rating
13 May 2013 Html Table Writer Writes a cell-array to an html file. Numerous formatting options are available. Author: Roger Parkyn

Ulf: thanks for the comment and rating! The file has been up for a few years and has been really useful for me at least so it is nice to see someone comment at last.

19 Oct 2012 Patchline Visualize lines as patch objects. Specify any valid patch property, including transparency. Author: Brett Shoelson

This is pretty useful.

To enable it to handle a matrix of y-values (column-wise) I made the following change which you may like to incorporate:

ADDED AFTER LINE 97 ("% Facecolor = 'k' is (essentially) ignored"...)
%Make x-vector the same size as y-matrix (assuming data is in columns)
if size(ys,2)>1 && size(xs,2)==1
xs = repmat(xs,1,size(ys,2));
end
%Add NaNs onto bottom row (so it doesn't plot an area?)
xs = [xs; NaN(1, size(xs,2))];
ys = [ys; NaN(1, size(ys,2))];
% Plot the "patches" (actually lines)
if isempty(zs)
p = patch(xs, ys, 'w');
else
p = patch(xs, ys, zs, 'w');
end

THE ABOVE REPLACED:
% if isempty(zs)
% p = patch([xs(:);NaN],[ys(:);NaN],'k');
% else
% p = patch([xs(:);NaN],[ys(:);NaN],[zs(:);NaN],'k');
% end

16 Jun 2011 Arrow plotter very simple customizable inline function to draw arrows. Author: Ryan Molecke

Nice and simple. Works OK if the xlimits and ylimits are across similar ranges. In such cases, or where plotting will be similar each call, this should be great. Otherwise the arrowhead shape is a bit unpredictable due to distortion.

I ended up going back to arrow.m (by Erik A. Johnson, it is on the file exchange. Yes that does look like a monster, at nearly 1400 lines!).

31 May 2011 Structure outline Prints the hierarchy outline of a structure with optionally, field values. Author: B.

Worked for me.

16 Nov 2010 readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc. Author: Peder Axensten

This is really useful to me and I have used it quite a bit.

I noticed however that comment lines are not fully removed but instead leave a blank line (apart from the very first line which will be fully removed if it is a comment). My work-around is shown below (although it has the downside of removing ALL blank lines - whether commented or not).

Replace the following lines:
if(~isempty(opts.comment)) % Remove comments.
text= regexprep(text, ['^\' opts.comment '[^' eol ']*' eol], '');
text= regexprep(text, [ '\' opts.comment '[^' eol ']*'], '');
end

with these lines:
if(~isempty(opts.comment)) % Remove comments.
text= regexprep(text, ['\' opts.comment '[^' eol ']*'], ''); % Remove commented line endings (but in the case of whole-lines this leaves a blank line!).
text= regexprep(text, [eol '+'], eol); % Remove blank lines, part 1: remove multiple eol instances (2 in a row = a blank line)
text= regexprep(text, ['^' eol '+'], ''); % Remove blank lines, part 2: if there is an eol at the beginning then remove it.
end

Comments and Ratings on Roger Parkyn's Files View all
Updated File Comment by Comments Rating
05 Jul 2013 Html Table Writer Writes a cell-array to an html file. Numerous formatting options are available. Author: Roger Parkyn Darik

13 May 2013 Html Table Writer Writes a cell-array to an html file. Numerous formatting options are available. Author: Roger Parkyn Roger Parkyn

Ulf: thanks for the comment and rating! The file has been up for a few years and has been really useful for me at least so it is nice to see someone comment at last.

08 May 2013 Html Table Writer Writes a cell-array to an html file. Numerous formatting options are available. Author: Roger Parkyn Ulf

greatly tool, that was what I'm looking for. Now I can easily print the content of my cell variables into an html-file. Thank you for this great job.

Contact us