Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
03 Nov 2009 FAST K-NEAREST NEIGHBORS SEARCH Simple but very fast algorithm for nearest neighbors search. Supports KNN and radius search. Author: Luigi Giaccari Giaccari, Luigi

Thank you it will fixed in the next release.
Please report comments on :
http://www.advancedmcode.org/
I don't check my FEX profile very often.

Thank you again

 Luigi

23 Oct 2009 MyFisher22 A very compact routine for Fisher's exact test on 2x2 matrix; power and sample sizes calculation Author: Giuseppe Cardillo Giaccari, Luigi

20 Sep 2009 Cubed sphere Generate a cubed-sphere geometry Author: Bruno Luong Giaccari, Luigi

Maybe we can merge your function and mine:

http://www.mathworks.com/matlabcentral/fileexchange/23959

This way the user can select if return triangular or quad patches... Let me know if you are interested

03 Sep 2009 SURFACE RECONSTRUCTION FROM SCATTERED POINTS CLOUD PART2 Builds a triangulated surface given a 3D points cloud. They do not need to be in the z=f(x,y) form. Author: Luigi Giaccari Giaccari, Luigi

Send the data on my e-mail I need to see them.

01 Sep 2009 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Giaccari, Luigi

19 Aug 2009 Matlab Offscreen Rendering Toolbox Project 3D mesh onto image using off screen OpenGL rendering, determine face color, visibilty, etc. Author: Tianli Yu Giaccari, Luigi

Warning: MEX could not find the library "glut"
         specified with -l option on the path specified
         with the -L option.
BatchFaceColorGradImpl.cpp
OffscreenGL.h(12) : fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
 
  C:\PROGRA~1\MATLAB\R2009A~1\BIN\MEX.PL: Error: Compile of 'BatchFaceColorGradImpl.cpp' failed.

Never used open GL, any help?

13 Aug 2009 rcssm: a pedestrian newsgroup stats reader rcssm extracts the posting activity of MATLAB's newsgroup since 1993 Author: us Giaccari, Luigi

A swiss clock!!! :-)

11 Aug 2009 35 Complete GUI Examples 35 working GUIs to read and learn. Author: Matt Fig Giaccari, Luigi

05 Aug 2009 Geodetic_Dome Show deflection of the geodetic dome under its own weigth Author: Luigi Giaccari Giaccari, Luigi

<h2><script type="text/javascript"></script><a href="http://www.gigasize.com/affiliates/?s=308&amp;a=902"&gt;&lt;img class="aligncenter" style="border:none;" src="http://gigasize.connexplace.com/en/tracking/display_content?a=902&amp;c=37&amp;s=308" alt="Gigasize : Gigasize Banner" width="468" height="60" /> </a></h2>

29 Jul 2009 FAST K-NEAREST NEIGHBOURS SEARCH 3D VERSION The 3d version of GLTREE Author: Luigi Giaccari Giaccari, Luigi

You are right, the bug is generated only when the user choose to return distances. This is why I didn't realize before.

Thank you very much

10 Jul 2009 SURFACE RECONSTRUCTION FROM SCATTERED POINTS CLOUD PART2 Builds a triangulated surface given a 3D points cloud. They do not need to be in the z=f(x,y) form. Author: Luigi Giaccari Giaccari, Luigi

I am sorry there is no paper.

02 Jul 2009 POKER PREDICTOR A Texas Holdem Poker Probability and Odds calculator. Fast, accurate and free. Author: Luigi Giaccari Giaccari, Luigi

AH AH AH!

That's my latin-english. I'll fix it in the following days.

Thank you for your report

01 Jul 2009 FAST K-NEAREST NEIGHBOURS SEARCH 3D VERSION The 3d version of GLTREE Author: Luigi Giaccari Giaccari, Luigi

Uh,
I am sorry, those lines are for debug purpose, I forgot to delete them.
A "clean" version is on the way.

23 May 2009 FAST K-NEAREST NEIGHBORS SEARCH Simple but very fast algorithm for nearest neighbors search. Supports KNN and radius search. Author: Luigi Giaccari Giaccari, Luigi

Given:
 
 N=reference +query points

Complexity of the algorithm is linear for random uniformly spaced points. Both for the serach and the tree construction.

 It becomes N^2 (Brute search) for very sparse dataset.

However this patological case can be detected after 5-10% running time. In this case is better to switch to kd-tree data structure. ( this detection is not present in this version)

                    Luigi

05 Apr 2009 KTHVALUE select the k-th smallest element in a (randomized) list Author: Jos (10584) Giaccari, Luigi

Nice One,

Well commented and written,

it is also fast for high K/Numel(L) ratio, but I thing for a smaller K, 1-2-3 , brute search would be faster.

 So if I can suggest an improvement I would switch to brute search in those cases. Am I wrong?

01 Apr 2009 HOW TO PLOT A COLOURED SURFACE FROM 3D SCATTER Simple script that shows how to plot surfaces in the z=f(x,y) form with rgb values at each point. Author: Luigi Giaccari Giaccari, Luigi

Please report questions on my e-mail, this space is dedicated to comments and ratings.

If you have a filled colud there are two main options, depending if your cloud comes from a tetraedral FEM mesh or not.

-If you have tetraedrons, than it is easy just get the boundary triangles.

-If you do not have them, it is more complicated, a ball pivoting or alpha shape tool is needed.

For more info, questions, suggestions contact me on my e-mail.

19 Mar 2009 inpoly mex file Find points inside or on the border of a polygon Author: Sebastien Paris Giaccari, Luigi

Very fast!!! well done.

I thing I found an error in the demo file:
The second demo model is buggy: the polygon is self-interecant!!

09 Mar 2009 Master GUI with Ease Powerpoint slides on creating a GUI and programming it. Author: Husam Aldahiyat Giaccari, Luigi

I like when someone makes things easy, avoiding to complicate the work just to make it seem a good work.

19 Feb 2009 LINEAR SYSTEMS SOLVER (for small Systems) Solves many small linear systems in a vectorized way. It avoids to call the \ command inside a loop. Author: Luigi Giaccari Giaccari, Luigi

Hi john,

Your solution seem to be about 5% faster, but the best is it more flexible about the block size,
probably in the next days I will update code with the modification you suggested.

Thank you very much

19 Feb 2009 LINEAR SYSTEMS SOLVER (for small Systems) Solves many small linear systems in a vectorized way. It avoids to call the \ command inside a loop. Author: Luigi Giaccari Giaccari, Luigi

Hi John thanks for the comment,

Honestly I didn't know the ndgrid command. More honestly, now that I know, I don't realize how to use it.

I thought about the 3D arrays as input but I personally prefer the 2D concatenation. Anyway in the next revision I will add this feature, since I thing the assembling indexes stays the same and it wont take a long time to code it.

I am not so confortable of least squares problems, I have just used lsqlin a few times. But I thing that this kind of solvers are slower that the ones for linear system, so the advantages of a vectorization will be minor. The for loop and function call time will be hidden by the solver time. As soon as I have a little free time I will run a few speed test and decide if add this new feature.

Thank you again

14 Feb 2009 Calculating blending moment of the shaft It calculate blending moment of the shaft when you insert a generic number of forces. Author: Riccardo Giaccari, Luigi

Penso che avrebbe bisogno di molte migliorie.

1) Che senso ha chiamare il GUI per inserire la lunghezza dell'albero se poi si fa tutto sul workspace?

2)Inserendo 0 per i valori del momento torcente viene generato un errore.

3)Evitare di inserire il numero delle forze applicate

4)La direzione può semplicemente essere inserita con il segno della forza.

5) C'è scritto verifica a fatica, ma non vedo nessun grafico a proposito.

In definitiva se tutto resta così limitato i calcoli conviene farli a mano...
Sarebbe più utile un calcolo con elementi beam. Magari con un GUI che rende agevole l'inserimento dei dati. Così si possono calcolare anche le freccie e le frequenze...

Alzerò il rating se ci saranno migliorie..

12 Feb 2009 3d Clock with geartrain A clock built using a general 3d rendering engine which supports shafts, gears, and clock-hands. Author: Michael Agostini Giaccari, Luigi

Very Very Very Nice

12 Feb 2009 Planetary Gear Demonstration of the use of SimMechanics and the Virtual Reality toolbox. Author: Pieter Mosterman Giaccari, Luigi

I got thid problem:

jar:file:/C:/Programmi/MATLAB/R2008a/java/jar/toolbox/dastudio.jar!/com/mathworks/toolbox/dastudio/diagView/resources/nag_red.gif Model error vrlib Simulink Failed to find 'VR Source' in library 'vrlib' referenced by 'mech_planetary_vr/Virtual Reality Toolbox/VR Source'.

Can it be fixed?

11 Feb 2009 Bouncing Ball Physics Fun Graphical User Interface that simulates the simplified physics of a ball bouncing off the ground Author: Husam Aldahiyat Giaccari, Luigi

Now is clearer!! what a long discussion did it cause!!!!!

I give this 4 star, one is missing beacuse I thing is a little to simple model. But overall it is nice submission like so many comments testify.

In the end I thing this is the MEX purpose, to create discussion and improve each other.

 Thanks to the Author and all commenters !!

11 Feb 2009 Bouncing Ball Physics Fun Graphical User Interface that simulates the simplified physics of a ball bouncing off the ground Author: Husam Aldahiyat Giaccari, Luigi

Yes
 
Horizontal and Vertical Speed Conservation are the correct terms for what this GUI does.

Well I don't want to be annoying but I have readen something wrong in previsious comments. Friction of the ground doesn't slow down balls. Friction makes them pivot.
 Without friction the ball just slips. It may stops cubes but not balls.

What really stops in real life the ball after a while it pivots it is not the ground friction, it is the ball deformability.
 When it touches the ground, due the weight pressure it becomes no more a ball. The pressure distribution has resultant torque opposed to ball motion. This is called rolling resistance and it is about 1/100 1/1000 the ground friction.
This is the reason balls runs faster than cubes.

 See http://en.wikipedia.org/wiki/Rolling_resistance

11 Feb 2009 Bouncing Ball Physics Fun Graphical User Interface that simulates the simplified physics of a ball bouncing off the ground Author: Husam Aldahiyat Giaccari, Luigi

Nice GUI but there is something wrong in the mathematical model.

This not a bouncing ball, in the simplest model, the friction value, I think you mean the friction with the ground, should affect the way ball pivots not length after that the ball stops.

For zero friction the ball just stops why?
-It should instead bouncing without pivoting.

-With intermediate values should slides and pivots dependending on materials data.

-With high friction should pivots without sliding.

If you try to insert a friction value >1 the ball accelerates, and this isn't phisical.

I saw you study mecatronics, you can realize that with Working Model software, or simpler throwing a ball.

I thing it need to be fixed

02 Feb 2009 Nonlinear F-16 Fighter Model This .zip file contains the 6 DoF nonlinear dynamic model of an F-16 aircraft. Author: Lars Sonneveldt Giaccari, Luigi

Maybe after the last update something is missing, I get an error on line 73 on feval command. Or maybe there is a problem on binary files just removed??????????

28 Jan 2009 SURFACE RECONSTRUCTION FROM SCATTERED POINTS CLOUD PART2 Builds a triangulated surface given a 3D points cloud. They do not need to be in the z=f(x,y) form. Author: Luigi Giaccari Giaccari, Luigi

The Author:
I received an e-mail about problems on Matlab R2007a (7.4.0). The problem is a skinny triangle on mannequin chin. That shoudn't be there.
On my version R2008a everything is working fine the model is recostructed correctly. I would like to know if somebody else got the same or different problems in versions previous to mine. Please send reports to my e-mail

22 Jan 2009 stlread Read STL file into MATLAB patch compatible matrixes. Author: Doron Harlev Giaccari, Luigi

Althought a little slow is very useful to import stl ascii files, I think the slowness dependes on not preallocate arrays in the importation loop.

22 Jan 2009 STL File Reader STLREAD imports geometry from a binary stereolithography (STL) file into MATLAB Author: Eric Johnson Giaccari, Luigi

Very useful for binary filesl but do not support ascii format

15 Jan 2009 Deleting multiple points: UniqueRows UniqueRows can be a faster alternative to the Matlab unique(X,'rows'); Author: Luigi Giaccari Giaccari, Luigi

I apologize for that it was a last minute modification which I thought not to be effetive but it was.
 I am sending an update version which I hope works fine. If you ever found something wrong please aknoledge me.

05 Jan 2009 Cam Simulator Given a set of motion programs this interface plots the cam profile and rotates it. Author: Husam Aldahiyat Giaccari, Luigi

Wonderful Congratulations,

It is a very usefull routine, with nice graphical plots.

I need to ask you a few question:

How to obtain profile coordinates?

Does it computes the profile for roller follower?

At the end a few possible improvement:

-rocker roller follower instead of translating.
-You can also includes the detachement problem which is very useffull for high frequency cams.

-Please insert a better documentation on how to use use this beatiful utilitie. I took 20 minutes to understand how to start!!!!

Thank you again

04 Jan 2009 Conjugate Gradient Method Conjugate Gradient Method to solve a system of linear equations Author: Yi Cao Giaccari, Luigi

A\b uses cholesky factorization if A is simmetric. It swithes to gauss method when A is not simmetric and the factorization fails due to negative sqrt input.

I don't know if it is present in all version, but there already is a conjgrad method in matlab.

Try:
 
help pcg

Anyway thank to Cao, submissions that works are always usefull, in the worst case you can study the algorithm.

 

23 Dec 2008 FAST CONVEX HULL ALGORITHM Totally m-code routine to compute convex hull in 2D space faster than the Matlab native convhull. Author: Luigi Giaccari Giaccari, Luigi

From your timing I suspect you did the same error of Tomas Clark

You should turn the profile off, profile only works on m-code, the native convhull is a mex routine, so it only slow down my algorithm.

To be sure please send a report about the way rou ran your test. If there is any problem I'll try to fix it.

20 Dec 2008 Efficient K-Nearest Neighbor Search using JIT A small but efficient tool to perform KNN search Author: Yi Cao Giaccari, Luigi

I think someone, maybe not the author, is faking the download number.
My opinion is that this is a very usefull routine, very well commented and totally m-coded.
The performances of course can not be the ones declared in the presentation. The algorithm it is just a brute search can only be competitive against kd-tree data structure for a small number of search and reference points.
For KNN search is used the sort function to find K-neighbours, and this is a very brute algorithm. I Know this the fastest m-code way to find KNN, but it is clear
that kd-trees will overcome this algorithm for very small models.

20 Dec 2008 A christmas tree plot A Small piece of code that constructs a coloured christmas tree with some presents and snow. Author: Anselm Giaccari, Luigi

Very nice

03 Dec 2008 kd-tree for matlab A kd-tree mex implementation which allows for nearest neighbor, k-nearest neighbor, range and ball q Author: Andrea Tagliasacchi Giaccari, Luigi

The most complete Kd-tree on Matlab exchange.
 Thank you Andrea

02 Dec 2008 OceanMap Manually enter matrix elements in a GUI, then save to a *.MAT file. Author: Thomas Clark Giaccari, Luigi

That'is it Ifound
Mister clark there is nothing wrong in my pc, maybe you should
turn the profile off when you run a new test try this. Especially
before giving low and inappropriate rating.
 
%% PUT THIS IN A SCRIPT AND RUN IT
% profile on
% profile clear
 
%%%%%%%%%%%%%%%%%%%%%%%%
 
%Maybe you forgot this !!!!
 
profile off
 
profile off
 
profile off
 
profile off
 
%%%%%%%%%%%%%%%%%%%%%%%
 
Npoints = logspace(1,6,15);
lengthN = numel(Npoints);
convhull_times = zeros(lengthN,1);
chull2d_times = zeros(lengthN,1);
for i = 1:lengthN
    N=ceil(Npoints(i));
    x=rand(N,1);
    y=rand(N,1);
    tic
    chull1 = convhull(x,y);
    convhull_times(i) = toc;
    tic
    chull=ConvHull2D(x,y);
    chull2d_times(i) = toc;
end
      
figure()
semilogx(Npoints,convhull_times,'g-')
hold on
semilogx(Npoints,chull2d_times,'b-')
legend({'Native convhull';'convhull2d'})
title('Performance comparison')
% profile viewer

02 Dec 2008 FAST CONVEX HULL ALGORITHM Totally m-code routine to compute convex hull in 2D space faster than the Matlab native convhull. Author: Luigi Giaccari Giaccari, Luigi

That'is it Ifound
Mister clark there is nothing wrong in my pc, maybe you should
turn the profile off when you run a new test try this. Especially
before giving low and inappropriate rating.

%% PUT THIS IN A SCRIPT AND RUN IT
% profile on
% profile clear

%%%%%%%%%%%%%%%%%%%%%%%%

%Maybe you forgot this !!!!

profile off

profile off

profile off

profile off

%%%%%%%%%%%%%%%%%%%%%%%

Npoints = logspace(1,6,15);
lengthN = numel(Npoints);
convhull_times = zeros(lengthN,1);
chull2d_times = zeros(lengthN,1);
for i = 1:lengthN
    N=ceil(Npoints(i));
    x=rand(N,1);
    y=rand(N,1);
    tic
    chull1 = convhull(x,y);
    convhull_times(i) = toc;
    tic
    chull=ConvHull2D(x,y);
    chull2d_times(i) = toc;
end
     
figure()
semilogx(Npoints,convhull_times,'g-')
hold on
semilogx(Npoints,chull2d_times,'b-')
legend({'Native convhull';'convhull2d'})
title('Performance comparison')
% profile viewer

02 Dec 2008 Inhull Efficient test for points inside a convex hull in n dimensions Author: John D'Errico Giaccari, Luigi

Very good code, readable, uderstandable and even fast.
The n-dimensions also make-it flexible.
 
The thing I like the most is a wonderfull example of dot product vectorization with memory management. It helps a lot to understdand how to make m-code more efficient.
 
The only thing i disagree is the comparison with tsearchn.
 I thing its purpose is to find where a point is located inside the hull and not whether he is inside or not. The nan output values are just a secondary objective which occurs in the worst case when a point lies outside.
 
Anyway a five stars, very good work!

02 Dec 2008 Inhull Efficient test for points inside a convex hull in n dimensions Author: John D'Errico Giaccari, Luigi

Very good code, readable, uderstandable and even fast.
The n-dimensions also make-it flexible.

The thing I like the most is a wonderfull example of dot product vectorization with memory management. It helps a lot to understdand how to make m-code more efficient.

The only thing i disagree is the comparison with tsearchn, I thing its purpose is to find where a point is located inside the hull and whether he is inside or not. The nan output values are just a secondary objective which occurs in the worst case when a point lies outside.

Anyway a five stars, very good work!

29 Nov 2008 FAST K-NEAREST NEIGHBORS SEARCH Simple but very fast algorithm for nearest neighbors search. Supports KNN and radius search. Author: Luigi Giaccari Giaccari, Luigi

1)I don't Know what kind of data you used but I didn't provide any.
The demo file contains just random points generation.
My pc do not support 1e7 due to help memory error, anyway finding the NNG in 1e7 points take much longer than 0.02 sec for both algorithoms.
My algorithom suffers query points outside the bounding box of reference, this should be the case in which ANN is faster.
2)One thing you are right is that ANN is more flexible.
3)From your comment it is not clear what you changed seems just like you copied and pasted the same line.
4)you could at least use your name
5)If you have problems my e-mail is the best place where fix them so please avoid fake comments

28 Nov 2008 TRAVELING SALESMAN PROBLEM USING CONVHULL Very simple m-file that produce solution comparable with other TSP toolbox in the matlab exchange. Author: Luigi Giaccari Giaccari, Luigi

Last Update:
Added distance matrix, more comments, and fixed the missing % in hep lines.

28 Nov 2008 Writing Fast MATLAB Code Speed up your project with this collection of techniques. Author: Pascal Getreuer Giaccari, Luigi

Thanks sometimes pdf are better than m-file.

24 Nov 2008 FAST K-NEAREST NEIGHBORS SEARCH Simple but very fast algorithm for nearest neighbors search. Supports KNN and radius search. Author: Luigi Giaccari Giaccari, Luigi

I don't know what can it be, I used Visual c++ 6.0,
  if you want an already compiled win32 mex you can contact me on my e-mail (Matlab exchange stuff do not axcept any more mex files, I can even send you the whole test with ann library).

I am sorry, with other files I have had this mex problem too.

23 Nov 2008 Fast points-in-polygon test Fast test to determine points located inside general polygon regions. Should be significantly faster Author: Darren Engwirda Giaccari, Luigi

Thank You,
 it was very helpfull, impressive code.

If I can suggest an improvement:
a mex version will be the top of performance.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com