Intersection of three cylinders
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kat
el 10 de Dic. de 2019
Respondida: Joffre Veloz Pazmiño
el 6 de Mzo. de 2023
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.
0 comentarios
Respuesta aceptada
Más respuestas (1)
Joffre Veloz Pazmiño
el 6 de Mzo. de 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
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!