Rank: 174 based on 545 downloads (last 30 days) and 18 files submitted
photo

Matt J

E-mail

Personal Profile:
Professional Interests:
medical image processing, optimization algorithms

 

Watch this Author's files

 

Files Posted by Matt J View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Mar 2014 Clean anonymous functions of excess memory Tries to purge an anonymous function of non-essential workspace variables Author: Matt J anonymous function, memory, parfor 29 0
06 Jan 2014 Screenshot Representing Polyhedral Convex Hulls by Vertices or (In)Equalities Express bounded polyhedron via equalities/inequalities or vertices. Author: Matt J vert2con, polyhedron, polytope, vertices, convex hull, convhull 58 39
  • 5.0
5.0 | 12 ratings
11 Dec 2013 FUNC2MAT: Convert linear function to matrix A utility to obtain the matrix representing a given linear function Author: Matt J linear function, matrix form, gradient, transpose, optimization toolbox, parameter estimation 19 0
13 Mar 2013 N-dimensional sparse arrays Creates an N-dimensional sparse array object, for arbitrary N. Author: Matt J sparse, ndimensional, multidimensional, oop, reshape, sparse array 50 72
  • 4.58333
4.6 | 12 ratings
15 Feb 2012 Split nD-array into equal sized cells Splits an array of any dimension into cell array of equal sized chunks. Author: Matt J blockproc, mat2cell, block, blocks, 8x8, dct 35 0
Comments and Ratings by Matt J View all
Updated File Comments Rating
14 Apr 2014 Absolute Orientation - Horn's method Solves weighted absolute orientation problem using Horn's quaternion-based method. Author: Matt J

@Steve,
The points must be placed into the columns of a and b, not the rows.

29 Mar 2014 imoverlay Create a color overlay of two images. Allows transparency and thresholding. Author: Matt Smith

Very nice.

Small bug, though (perhaps). When the syntax

imoverlay(B,F,[],[],cmap,[],ha)

is used on a pre-existing axes, ha, the colormap in the figure containing the pre-existing axes does not get overriden by 'cmap'.

27 Mar 2014 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

Here's a better version of the DeleteFcn,

function DeleteMethod(src,event)
% when called, rescale all fonts in image
hAx=gca;
hFig = get(hAx,'Parent');
ud=get(hAx, 'UserData');
idx=(ud.handles==src);

ud.ratios(idx)=[];
ud.handles(idx)=[];



if isempty(ud.handles)
setappdata(hFig,'KenAxeResizeListeners',[]);
set(hAx, 'UserData',[]);
else
set(hAx, 'UserData',ud);
end

delete(src);

end

27 Mar 2014 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

Ken,

There seems to be a duplicate of this submission at

http://www.mathworks.com/matlabcentral/fileexchange/41501-textzoomable-for-text-that-scales-as-you-zoom

Which is the most official/current version? Also, when I do a very high zoom on the text, parts of the text appear outside the axes. Is there a way to prevent this, i.e., so that only text within the window of the axes is visible?

27 Mar 2014 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

I get the same errors/warnings as Nispio, but setting txtHandle's DeleteFcn callback to the following seems to fix it.

function DeleteMethod(src,event)
% when called, rescale all fonts in image
hAxes=gca;
hFig = get(hAxes,'Parent');
setappdata(hFig,'KenAxeResizeListeners',[]);
set(hAxes, 'UserData',[]);
delete(src);
end

Comments and Ratings on Matt J's Files View all
Updated File Comment by Comments Rating
14 Apr 2014 Absolute Orientation - Horn's method Solves weighted absolute orientation problem using Horn's quaternion-based method. Author: Matt J Matt J

@Steve,
The points must be placed into the columns of a and b, not the rows.

14 Apr 2014 Absolute Orientation - Horn's method Solves weighted absolute orientation problem using Horn's quaternion-based method. Author: Matt J Steve

One question about the translation vector (regParams.t):
I have the following 3 points before rotation:
A1 = (400, 400, 200,)
A2 = (600, 600, 200,)
A3 = (2000, 2000, 2000)
and after rotation:
B1 = (400, 400, 200,)
B2 = (600, 600, 200,)
B3 = (2000, 2000, 2001)
so all point are the same, just B3z is 2001 instead of 2000. Then the computed translation vector using your code is: (162, -76,4001)
What doesn't make sense to me? Because just one single point changed it's z-value from 2000 to 2001 what is just a difference of 1...?
Nevertheless, the result seems to be right, because:
b(:,1) = regParams.R * a(:,1) + regParams.t
is true...

14 Apr 2014 Absolute Orientation - Horn's method Solves weighted absolute orientation problem using Horn's quaternion-based method. Author: Matt J Steve

Thanks for this very nice tool!

31 Mar 2014 3D Rotation about Shifted Axis Computes/applies rotation about arbitrary 3D line. Author: Matt J Sagar

12 Mar 2014 Representing Polyhedral Convex Hulls by Vertices or (In)Equalities Express bounded polyhedron via equalities/inequalities or vertices. Author: Matt J Bogun, Ivan

Contact us