%% Stream Ribbon With Twist Angle
% Specify a twist angle for the stream ribbon

t = 0:.15:15;
verts = {[cos(t)' sin(t)' (t/3)']};
twistangle = {cos(t)'};
streamribbon(verts,twistangle);
axis tight
shading interp
view(3)
camlight 
lighting gouraud

% Copyright 2012 The MathWorks, Inc.