- /
-
DNA helix
on 20 Oct 2021
- 2
- 59
- 0
- 0
- 270
[a,d]=meshgrid(linspace(0,1.5*360,300),[-20 20]);
Mesh(a,0,d);
hold on;
Mesh(a,180,d);
for t=linspace(0,1.5*360,25)
A=[t t+180];
plot3(cosd(A),sind(A),[t t]/300,'-g');
end
axis equal off;
lightangle(gca,-45,30);
view(0,0);
function Mesh(a,b,d)
x=cosd(a+b);
y=sind(a+b);
z=(a+d)/300;
surf(x,y,z);
end