Rank: 2198 based on 24 downloads (last 30 days) and 4 files submitted
photo

Ken Purchase

E-mail
Lat/Long
35.8485, -78.8295

Personal Profile:

Matlab enthusiast

Professional Interests:
Optics, Engineering, Photography

 

Watch this Author's files

 

Files Posted by Ken View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Apr 2013 Screenshot TextZoomable for text that scales as you zoom Text that zooms as you zoom your plot, rather than staying at a fixed font size. Author: Ken Purchase text, zoom, text zoom, text scaling, scaling, annotation 8 0
  • 5.0
5.0 | 1 rating
26 Apr 2013 Screenshot TextZoomable for text that scales as you zoom Adds text to a figure that grows/shrinks with figure content as the figure is zoomed/scaled Author: Ken Purchase text, zoomable text, scalable text, text zoom, label, rescale 1 0
07 Jan 2010 Screenshot RenderText Draws text (font) into a matrix, by first drawing it in a figure, then capturing the screen. Author: Ken Purchase graphics, text, render text, text renderer, draw text, font 2 0
03 Dec 2007 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase optimization, bound, fminsearch, optimize, bounded, output 13 7
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Ken View all
Updated File Comments Rating
19 Mar 2013 check if coordinates are inside the hexagon check if coordinates are within the hexagon, can be used to filter out positions outside. Author: Yuanye Wang

Simple and elegant - thanks!

26 Jul 2012 optprop - a color properties toolbox General routines for calculation and analysis of color related properties. Author: Jerker Wagberg

22 Aug 2011 Windows System Sounds Play any Windows system sound from within MATLAB. Author: Drew Weymouth

Does just what it said and just what I needed

18 Aug 2009 writedxf.m Given filename, 3-D mesh - generated DXF file with surface specified by the mesh. Author: Greg Siegle

Some documentation and preferably an example would be very helpful - I'm trying to reverse engineer how to use this. Thanks.

Comments and Ratings on Ken's Files View all
Updated File Comment by Comments Rating
07 Jun 2013 TextZoomable for text that scales as you zoom Text that zooms as you zoom your plot, rather than staying at a fixed font size. Author: Ken Purchase Simon

20 Jun 2011 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase Tootoonian, Sina

@Andy:

I got the same problem. The cause seemed to be that intrafun passes varargin to the function to m inimize, and if the latter function can't handle it, an error is generated.

The workaround I found was to let my function accept varargin as a dummy argument e.g. If my function was f = @(x) x^2, to change it to f = @(x,varargin) x^2. When this is done, the new function can handle the varargin passed in through intrafun, and no error results.

Hope this helps!

30 Nov 2009 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase Andrew

Has anybody been able to run this function in a parfor loop?

22 May 2009 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase Men, Chris

good job and thank you very much

29 Mar 2009 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase Andy

I was going to use this code to fit Gaussians to a known curve by minimizing the known - fit residual. I tried for 3 and 4 Gaussians, meaning 9 or 12 variables. This newer code fails giving the error:

Too many input arguments.

Error in ==> fminsearchbnd>@(x,varargin)fun(xtransform(x),varargin{:}) at 233
intrafun = @(x, varargin) fun(xtransform(x), varargin{:});

Error in ==> fminsearch at 205
fv(:,1) = funfcn(x,varargin{:});

Error in ==> fminsearchbnd at 264
[xu,fval,exitflag,output] = fminsearch(intrafun,x0u,options,varargin);

The original code by John D'Errico works perfectly.

Top Tags Applied by Ken
text, label, scalable text, text zoom, annotation
Files Tagged by Ken View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
26 Apr 2013 Screenshot TextZoomable for text that scales as you zoom Text that zooms as you zoom your plot, rather than staying at a fixed font size. Author: Ken Purchase text, zoom, text zoom, text scaling, scaling, annotation 8 0
  • 5.0
5.0 | 1 rating
26 Apr 2013 Screenshot TextZoomable for text that scales as you zoom Adds text to a figure that grows/shrinks with figure content as the figure is zoomed/scaled Author: Ken Purchase text, zoomable text, scalable text, text zoom, label, rescale 1 0
07 Jan 2010 Screenshot RenderText Draws text (font) into a matrix, by first drawing it in a figure, then capturing the screen. Author: Ken Purchase graphics, text, render text, text renderer, draw text, font 2 0
03 Dec 2007 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase optimization, bound, fminsearch, optimize, bounded, output 13 7
  • 5.0
5.0 | 2 ratings
09 Feb 2004 Screenshot Electromagnetic Waves & Antennas Toolbox Companion Software Author: Sophocles Orfanidis antennas, optical filter, multidiel2m, waves, sparameters, transmission lines 123 18
  • 4.40625
4.4 | 33 ratings

Contact us