How to create a 3D surface plot from scatter3?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello All,
I would like to create a 3D surface plot from the 625 data points which are taken at certain intervals. Each data points in a row represents a vector with its X,Y and Z values represented in the first, second and third column, respectively. Using scatter3 function I can visualize the results. Below is the code. But I need to represent it in the form of a continuous 3Dsurface for better visualization.
Could anyone suggest me how can I proceed?
For creating the 3D surface the colour code should follow: sqrt(x^2+y^2+z^2)
The test.txt file is also included in order to have a look.
Thanking you in advance.
test=load('test.txt');
x = test(:,1);
y = test(:,2);
z = test(:,3);
s=scatter3(x,y,z);
view(3);
1 Kommentar
Jeffrey Clark
am 23 Jun. 2022
@SAHOO Sudeep Kumar, please look at response to 3D Surface plot of a body for which the xyz coordinates are given - (mathworks.com)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!