Search Comments and Ratings

go

   
Date File Comment by Comment Rating
14 Oct 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Kao

Dear Alan,
Great work. May I have your relate paper? I am interested in this algorithm. my email: fox19851120@gmail.com

Many thanks

14 Oct 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Kao

15 Sep 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Casey

07 Sep 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Pierrick Bersier

14 Aug 2014 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings Casey

25 May 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings li

good work!

20 May 2014 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings Lazaros Moysis

Thanks for your reply! that helped me for sure! Changing the rating to 5.

19 May 2014 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings Alan Jennings

Glad it helped Lazaros!
To make it bigger, just make the figure window bigger.
If you’re having issues with the compressions with the ‘MPEG’ format, you can add a quality factor, but the default of 75 (of 100) normally works good for me.
Add the following lines to the function, CaptureFigVid.m
Line 72:
if isfield(OptionZ,'Quality')
daObj.Quality=OptionZ.Quality;
end
And then from where you call it, add
OptionZ.Quality=100;

16 May 2014 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings Lazaros Moysis

Can you specify the size of the video to upgrade the quality and make it better looking?

11 Mar 2014 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings Lilian

Hi,

Can you help me transform this function
function Graf1()
x=(-2:0.08:2);
y=(-2:0.08:2);
a=2;
b=2;
for i = 1:length(x)
for j = 1:length(y)
if (a*abs(x(i))) <= abs(y(j))
z(i,j) = abs(y(j))
end
if (( abs(x(i)) <= abs(y(j)) ) && ( abs(y(j)) <= a*abs(x(i))))
z(i,j) = a*abs(x(i));
end
if (b*abs(y(j))) <= abs(x(i))
z(i,j) = abs(x(i))
end
if (( abs(y(j)) <= abs(x(i)) ) && ( abs(x(i)) <= b*abs(y(j))))
z(i,j) = b*abs(y(j))
end

end

end

surfc(z)
title ('Plot Title', 'FontWeight','Bold','FontSize',11) % Add labels...
xlabel ('X Axis Label', 'FontWeight','Bold','FontSize',11)
ylabel ('Y Axis Label', 'FontWeight','Bold','FontSize',11)
zlabel ('Z Axis Label', 'FontWeight','Bold','FontSize',11)
grid on ; % Switch on the figure grid, and
set(gca,'GridLineStyle','-') % set the grid to solid li
end

I do not understand how can I rotate my graph drawing function.

Thank you !!! :)

10 Mar 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Patrick

Dear Alan,
thanks for this great function! Is there any chance for me to get the related papers explaining this method, as well? Tried to research it the whole day - without succes...
Thanks a lot!
patrick-fink@gmx.net

25 Feb 2014 Gradient from Neural Network Function that takes a NN and creates a new NN that gives the gradient. Author: Alan Jennings Gurpreet` Gosal

Hi Alan,

I am working with 2013 and I modified 'tansig.m' with its derivative as d= 1-a.*a
but there is an error in 'nnModuleInfo'; saying '' undefined function or variable 'dtansig_0.name' ''

23 Jan 2014 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Sa

Dear Alan,
Outstanding work! Could you send me the related paper explaining this method?
samuel.reimer@tum.de

27 Oct 2013 Inverse Optimal Functions for Motoman HP-3 Tip Precision A population based optimization increases pointing precision for a planar robotic arm. Author: Alan Jennings Masoud Ghanbari

04 Sep 2013 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings Christian Jensen

If I don't include (...,'FaceLighting','phong')
in my surf plot, the figure spins but the movie is just one static image. Why is that?

30 Jun 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Farsat Balata

Dear Alan, could you please, explain more about the two vectors A and B. I don't understand the rationality of Error function you defined as sum((x-xc)^2+(y-yc)^2+(z-zc)^2-r^2)^2,. Is the initial sphere center is taken for partial of the error of each parameter for example xc= mean(x), yc=mean (y) and zc= mean (z) and the function E = sum((xi-mean(x))^2+(y-mean(y))^2+(z-mean(z))^2-r^2)^2 and then, minimze the function E. many thanks

30 Jun 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Farsat Balata

Dear Alan, pointing to my previous comment, I have just want to correct the equation
E = sum((xi-mean(x))^2+(yi-mean (y))^2+(zi-mean(z))^2-r^2)^2
Regards

06 May 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Farsat Balata

Hi Alan,
Great work I would be happy if you could send me the related paper describing the method.
isxfha@nottingham.ac.uk

04 Apr 2013 Create Video of Rotating 3D Plot Specify a set of view angles and this function creates a video for use in presentations. Author: Alan Jennings arnold

Thanks! A couple of bugs/ideas:

1. You should make it an option to fix the "zoom pumping", maybe it is the camera position, that rotation the plot under a larger elevation (say 45°) does not cause the plot to zoom in and out in every quadrant while rotating. Try this to see what I mean:

CaptureFigVid([0,45;-359,45], 'WellMadeVid',OptionZ)

Just as an example, this file solves this quite nicely
http://www.mathworks.com/matlabcentral/fileexchange/40572-spinrotate-your-plot

2. spacing the view angles makes sense, but I don't get why I can only specify two view angle pairs. In line 89 you limit this. Why not make it dependent on OptionZ.Periodic?

3. OptionZ.Periodic=true still causes a non-smooth jump when looping the video. Don't know why this is exactly

4. Add export for an animated gif instead of mp4. How to write one can be seen here:
http://www.mathworks.com/matlabcentral/fileexchange/21944-animated-gif

04 Apr 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings JamesAb

Hi Alan. Great code! I really appreciate if you could send me the related paper describing the method:

jamesabott@yahoo.com

Many thanks!

26 Mar 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Simao

Hi Alan. Great work! can you please send me the relating papers?

simao.britodaluz@griffithuni.edu.au

much appreciated

11 Mar 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Chloe

Hi Alan, any chance you could please send me the relating papers to c.carson@ncl.ac.uk?

Thanks for the code. Works perfect!

19 Feb 2013 Furuta (rotary) Pendulum Equations of motion for a pendulum mounted on rotating base are compared to SimMechanics. Author: Alan Jennings faisal

very good

22 Jan 2013 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Laurens

Works great!

I was wondering if you could send me the paper as well (email: laurens.slot@gmail.com).

Also, how would this look if the radius was known?

19 Dec 2012 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings luo

Dear Alan, can you send me the related papers? You know, I don't understand the rationality of Error function you defined as sum((x-xc)^2+(y-yc)^2+(z-zc)^2-r^2)^2, since I thought it was supposed to be sum(sqrt((x-xc)^2+(y-yc)^2+(z-zc)^2)-r)^2. My email: lhwsky@mail.ustc.edu.cn. many thanks

15 Oct 2012 Control optimization of a 4DOF arm using DIDO 4 DOF arm imported via SimMechanics generates dynamics for optimal pick-place control solved by DIDO Author: Alan Jennings William

Very good. It seems that the file "Arm_4DOF_Feedback_1b.mdl" was missing.

27 Aug 2012 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Daniel Lopes

Great piece of code!

10 Jun 2012 Control optimization of a 4DOF arm using DIDO 4 DOF arm imported via SimMechanics generates dynamics for optimal pick-place control solved by DIDO Author: Alan Jennings cancan

Bravo

03 Apr 2012 Furuta (rotary) Pendulum Equations of motion for a pendulum mounted on rotating base are compared to SimMechanics. Author: Alan Jennings ERIC

13 Mar 2012 Sphere Fit (least squared) Fits a sphere to a set of noisy data. Does not require a wide arc or many points. Author: Alan Jennings Tim

works great for my task, and thank you for sending me the related papers! :-)

22 Apr 2011 Gradient from Neural Network Function that takes a NN and creates a new NN that gives the gradient. Author: Alan Jennings duc

i want to download it

10 Nov 2010 Gradient from Neural Network Function that takes a NN and creates a new NN that gives the gradient. Author: Alan Jennings Alan Jennings

This needs a change to work with 2010 (when you change the size of the output, the weights change differently then before), I've done it and will get it in here soon. Again, Please let me know if this has helped you.

09 Aug 2010 Gradient from Neural Network Function that takes a NN and creates a new NN that gives the gradient. Author: Alan Jennings Alan Jennings

Let me know if a Hessian would be helpful. I'm sure it could be done, but I'm wondering if there's interest.

Contact us