Show Sidebar Hide Sidebar

3D Scatter Plots in MATLAB

How to make 3D scatter plots in MATLAB.

% Learn about API authentication here:
% Find your api_key here:

[X,Y,Z] = sphere(16);
x = [0.5*X(:); 0.75*X(:); X(:)];
y = [0.5*Y(:); 0.75*Y(:); Y(:)];
z = [0.5*Z(:); 0.75*Z(:); Z(:)];

resp = fig2plotly(fig)
plotly_url = resp.url;
Still need help?
Contact Us

For guaranteed 24 hour response turnarounds, upgrade to a Developer Support Plan.