Rank: 3909 based on 16 downloads (last 30 days) and 2 files submitted
photo

Roger Parkyn

E-mail
Company/University
Hydro Tasmania

Personal Profile:
Professional Interests:
Hydrological and energy modelling

 

Watch this Author's files

 

Files Posted by Roger View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
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, table, html, output, publish 12 0
02 Jun 2010 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 4 0
Comments and Ratings by Roger View all
Updated File Comments Rating
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

27 Jul 2010 GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid Author: Jos (10584)

Worked for me thanks.

Top Tags Applied by Roger
hydrology, cdf, cumulative density function, data export, duration plot
Files Tagged by Roger View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
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, table, html, output, publish 12 0
02 Nov 2010 vlookup - similar to MS Excel function A matrix version of VLOOKUP similar to MS Excel function. Author: Zhiqiang Zhang lookup, vlookup 18 2
  • 5.0
5.0 | 1 rating
02 Jun 2010 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 4 0
18 Feb 2008 Screenshot GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid Author: Jos (10584) annotation, customization, reference, line, grid, horizontal 46 21
  • 4.72222
4.7 | 18 ratings
25 Jan 2006 Screenshot Intensity Duration Frequency Curves A plot which shows the different curves of Intensity - Duration - Frequency of rain events. Author: Gabriel Ruiz rain, intensity, duration, frequency, gumbel distribution, hydrology 29 4

Contact us