How can I plot a Helical phase fronts similar to the following picture
21 views (last 30 days)
Show older comments
0 Comments
Accepted Answer
darova
on 8 Oct 2019
Use meshgrid and surf commands
7 Comments
darova
on 9 Oct 2019
Looks like just the same spiral copied and rotated
k = 3; % play with this
r = linspace(0,5,10);
t = linspace(0,5);
[R,T] = meshgrid(r,t);
X = @(T) R.*cos(T);
Y = @(T) R.*sin(T);
Z = k.*T;
cla
n = 5;
hold on
for i = 1:n
g = surf(X(T+2*pi*i/n),Y(T+2*pi*i/n),Z);
set(g,'FaceColor',rand(1,3),'FaceAlpha',0.5)
end
hold off
axis equal
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!