Intersection of three cylinders

4 Ansichten (letzte 30 Tage)
Kat
Kat am 10 Dez. 2019
I am trying to graph the intersection of three perpendicular cylinders each centered along one of the axes. I’m using a provided program to graph over a polar region. I started by finding the intersection of two cylinders and then trying to intersect with the third but I’m not sure how to do this. Any hints are appreciated.

Akzeptierte Antwort

KSSV
KSSV am 10 Dez. 2019

Weitere Antworten (1)

Joffre Veloz Pazmiño
Joffre Veloz Pazmiño am 6 Mär. 2023
This is the volume of the 3-cylinder intercession
clc,clear
r0 = 2;
t = linspace(0,2*pi,9);
r = repmat([0 r0/sqrt(2)],[1 4]);
r = [r 0];
t1 = linspace(0,6*pi,90);
r1 = interp1(t,r,t1);
T = [t1;t1];
Z = [r1;-r1];
[X,Y] = pol2cart(T,r0);
h(1) = surf(X,Y,Z);
h(2) = surface(X,Z,Y);
h(3) = surface(Z,Y,X);
[x1,y1] = pol2cart(t1,r0);
line(x1,y1,r1,'linewidth',3)
line(x1,y1,-r1,'linewidth',3)
axis equal

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by