how do i create a surface around two circles of different diameters located a specific position???

can anyone please help me with generation of mesh or surface around circles.... shall remain thankful. please see the code below... i want to create surface around 3 circles of different radius.... i tried using mesh and surf but not been able to do it.

7 Comments

Note that sohaib khan edited the Question to remove the originally posted code. I still have it and can provide it if necessary.
Hello Star Strider. I am stuck can you please help me....
I have used your solution, that you provided me last time. I have used it to develop aircraft geometry. The code now generates and develops, surfaces, 3d figure and its CAD model in STL format.
I have now included wings and tails in the geometry but facing few problems generating surf and stl conversion. Can you please help me out ... i shall remain thankful !!!
I cannot help with respect to the STL conversion. I suggest that you search the File Exchange to see if code exists that meets your needs.

Sign in to comment.

 Accepted Answer

You are close. You need to concatenate the vectors into matrices, then use surf to plot them.
Try this:
xm = [x1; x2; x3];
ym = [y1; y2; y3];
zm = [z1; z2; z3];
figure
surf(zm, ym, xm)
grid on
shading('interp') % Optional (Smooth Surface Interpolation)
axis('equal')
producing:
I equalised the axis scales so as not to distort the circles.

2 Comments

THANKYOU SO MUCH Star Strider ... !!!! u solved my problem. god bless :)
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!