Advertisement
BORUTO-121

stozac_plot3(9)

Mar 6th, 2022
194
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement