Rank: 11838 based on 0 downloads (last 30 days) and 0 file submitted
photo

Jo Williams

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Jo Williams View all
Updated File Comments Rating
04 Dec 2014 scatplot Scatter plot with color indicating data density. Author: Alex Sanchez

I liked the idea behind the gsp subfunction, and it *is* much more efficient than scatter. I tried this section on its own. But it should be used with care - the order that you work through the colormap will affect the final plot, with later (default red) colours overlaid over earlier (default blue) wherever the dots are crowded close together. Especially if you shrink the figure this can result in a massive bias towards (default) red. To test the effect on your plot, try replacing the loop with

for k=size(map,1):-1:1

02 May 2013 arrow.m Draw a line with an arrowhead. Author: Erik Johnson

Very useful, thanks. The help suggests using AXIS(AXIS) to fix the limits, I think the same effect can be acheived with AXIS MANUAL, which would be clearer.
It's also not obvious that the arrow will be a patch object, so has properties like edgecolor, facecolor, rather than line properties.

09 May 2012 tinterp - an alternative to griddata Linear and quadratic interpolation for scattered data Author: Darren Engwirda

Three years later and I'm still using it, but this code falls over in Matlab 2012a because TSEARCH has been removed. The following substitution fixes it:

%i = tsearch(p(:,1),p(:,2),t,pi(:,1),pi(:,2));

becomes
i = tsearchn(p,t,pi);

DelaunayTri and pointLocation are suggested by the error message, and may provide a speed improvement, but since I've saved a load of triangles the old way I don't really want a major rewrite!

Jo

14 May 2009 tinterp - an alternative to griddata Linear and quadratic interpolation for scattered data Author: Darren Engwirda

10 Feb 2009 Improved WHOS function Improves the readability of the WHOS function. Author: Daniel Ennis

Does what it says, useful for giving a human-readable version of the variable size. Code could use a bit of tidying up. It'd be good to see this feature in standard Matlab.

Contact us