Plots point cloud data
[h] = nan_fscatter3(X,Y,Z,C,cmap); X: data vector (x-axis) Y: data vector (y-axis) Z: data vector (z-axis) C: group vector cmap: optional colormap h: handles to the line objects
Plots point cloud data in cmap color classes and 3 Dimensions, X,Y,Z,C are vectors of the same length
deff("[x,y,z]=sph(alp,tet)",["x=r*cos(alp).*cos(tet)+orig(1)*ones(tet)";.. "y=r*cos(alp).*sin(tet)+orig(2)*ones(tet)";.. "z=r*sin(alp)+orig(3)*ones(tet)"]); r=1; orig=[0 0 0]; [x,y,z]=eval3dp(sph,linspace(-%pi/2,%pi/2,40),linspace(0,%pi*2,20)); X = [x(:)*.5 x(:)*.75 x(:)]; Y = [y(:)*.5 y(:)*.75 y(:)]; Z = [z(:)*.5 z(:)*.75 z(:)]; S = repmat([1 .75 .5]*10,length(x),1); C = repmat([1 2 3],length(x),1); nan_fscatter3(X,Y,Z,C); loadmatfile(nan_getpath()+"/demos/data/iris.mat"); nan_fscatter3(meas(:,1),meas(:,2),meas(:,3),nan_grp2idx(species)) | ![]() | ![]() |