Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Plots, LinearAlgebra
- # Juhani Kaukoranta 13.11.2023
- function circularhelix(a,b,kierroksia,n)
- # a=kierroksen säde, b=nousu, n=pisteiden määrä
- t = LinRange(0,kierroksia*2*π,n)
- x = a*cos.(t)
- y = a*sin.(t)
- z = b.*t
- points = [x,y,z] ;
- plt3d= Plots.plot(points[1,:],points[2,:], points[3,:],
- seriestype=:scatter, markersize = 1,legend=false)
- display(plt3d) # plottaa jakauman
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement