Advertisement
BORUTO-121

plot_solenoid(6)

Mar 6th, 2022
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.15 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement