Advertisement
BORUTO-121

stozac_plot3(9)

Mar 6th, 2022
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.17 KB | None | 0 0
  1. f(3,5,10);
  2. function []=f(R,h,N)
  3.     full=2*pi*N;
  4.     fi=-2*full:0.1:0;
  5.     x=R*fi/full.*cos(fi);
  6.     y=R*fi/full.*sin(fi);
  7.     z=h*fi/full+h;
  8.     plot3(x,y,z);
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement