Uses a loop in order to plot colour classes as line objects (plot3) for colouring 3d points.Much faster than scatter3, does not need as much memory.Very useful with large point clouds.
Great code. Thank you.
i tried to use function fscatter3 but i have some errores in colormap(cmap) i don't why it's not working
Any body have exemble how can use function fscatter3
Awesome code. Thank you!!!
ii = round(interp1([floor(mins) ceil(maxs)],[1 numclass],C));
to make the colormap vary wrt Z axis.
That was what I needed anyway...
Thanks for the code.
Been of great help. Excellent.
Now we're talking! I was just about to toss Matlab out because of it's horrible graphing for REAL 3D data, but this is just perfect. Great Job!
Excellent and fast
Works much faster than griddata + surf
I changed the last part so that zeros for Z values will be interpreted as a 2D scatter:
if ~minz & ~maxz
axis([minx maxx miny maxy])
axis([minx maxx miny maxy minz maxz])
Works nice, though I had to
drop the "axis image" statement on the last line -
otherwise all three axes are locked to
equal scaling, and that might not be what you are looking for in general. The code is basic, but easy to adapt - surprising speed!
saves time, but the FLOOR and CEIL functions line 40 prevent from using the full color scale; I'd recommand dropping them:
ii = round(interp1([mins maxs],[1 ...
Previous I had memory problems when using scatter on huge datasets. But now it is no longer a problem!!!
I had rewritten it to 2D (scatter), by obmitting "Z" in the code and replaced plot3 with plot.
VERY USEFULL when you are working with huge amount of data sets!
Works with latest matlab, code speeded up a bit, new additional structure input option for laser data (raw.x-z and raw.int), default colorbar is now plotted.
changed default colormap to hsv ;-)
Win cash prizes and have your live script featured on our websiteLearn more
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.