Drawing a sphere/ellipsoid starting by some points

1 view (last 30 days)
Hi Guys, I am not expert of matlab, and I am in difficult with a things. I have a file similar to: 14215 2514 3541 (line 1) 25255 542 2553 (line 2) 525 5555 6666 (line 3) etc.
Starting this lines, I need to draw a sphere or an ellipsoid! I am managed to draw all the points on the figure, obtaining someting of similar of a sphere (you can see it on the picture). But I need a real solid! can you help me?
Thank you, Matteo

Answers (1)

Image Analyst
Image Analyst on 11 Apr 2014
Edited: Image Analyst on 11 Apr 2014
How about delaunay?
load seamount
tri = delaunay(x,y);
trisurf(tri,x,y,z);
  3 Comments
Image Analyst
Image Analyst on 11 Apr 2014
Matteo's "Answer" moved here:
Hi, thank you for the answer. Excuse me if I asked you this: if I have a file, and in each row I have 3 values as the example, where I am supposed to put my values in your code? Thank you
Image Analyst
Image Analyst on 11 Apr 2014
Use readtable() to read in your data into x,y,z arrays. If you have a really old version of MATLAB, use csvread(), textscan(), or similar. But haven't you already done that? I would think so since somehow you plotted some stuff.

Sign in to comment.

Categories

Find more on Large Files and Big Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!