Rank: 1951 based on 29 downloads (last 30 days) and 2 files submitted
photo

Ken Purchase

E-mail
Lat/Long
35.842, -78.868

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
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 6 0
03 Dec 2007 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase optimization, bound, fminsearch, optimize, bounded, output 23 7
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Ken View all
Updated File Comments Rating
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
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.

04 Dec 2007 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase D'Errico, John

I like the changes that Ken has made. They clean up the code nicely. Not much to say other than - well done.

Top Tags Applied by Ken
bound, bounded, chemometrics, draw text, fminsearch
Files Tagged by Ken View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
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 6 0
07 Jul 2009 The N-way Toolbox Tools for fitting multi-way (tensor) models such as PARAFAC Author: Rasmus Bro multiway, npls, tucker3, statistics, trilinear, threeway 38 7
  • 4.4
4.4 | 10 ratings
03 Dec 2007 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase optimization, bound, fminsearch, optimize, bounded, output 23 7
  • 5.0
5.0 | 2 ratings
09 Feb 2004 Screenshot Electromagnetic Waves & Antennas Toolbox Companion Software Author: Sophocles Orfanidis antennas, optical filter, waves, sparameters, transmission lines, rf 137 17
  • 4.41935
4.4 | 32 ratings

Contact us at files@mathworks.com