Advertisement
BORUTO-121

plot_solenoid(6)

Mar 6th, 2022
182
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. f(2,10,2)
  2. function []=f(R,h,N)
  3.     full=2*pi*N;
  4.     fi=0:0.1:2*full;
  5.     x=R*cos(fi);
  6.     y=R*sin(fi);
  7.     z=h*fi/full;
  8.     plot3(x,y,z);
  9. end
Advertisement
RAW Paste Data Copied
Advertisement