Functions | Variables

plotspline.m File Reference

Functions

 cos (a2/180 *pi) sin(a2/180 *pi)
 figure (1)
 subplot (4, 1, 1)
cla axis equal hold on plot (p(:, 1), p(:, 2))
 title (sprintf('Angle=%d^o', abs(a1-a2)))
for plot (polyval(px, t), polyval(py, t), '.')
end vypocet drahy subplot (4, 1, 2)
cla hold on grid on title ('Distance')
 xlabel ('t')
 s (1)=0
for if (t~=0) deltaS
 s (t+1)
end plot (t/100, s(t+1), '+')
end subplot (4, 1, 3)
cla title ('Curvature')
 kappa (i+1)
 plot (t, kappa(i+1), '+')
end subplot (4, 1, 4)
cla plot (s, kappa, '+')
 title ('Curvature on Distance')
 xlabel ('s')
for deltaKappa (i)

Variables

function prujezd
return end a1 = 60
 a2 = 0
 m = 1.30
 p
 x0 = p(1,1) * distance
 y0 = p(1,2) * distance
 x1 = p(3,1) * distance
 y1 = p(3,2) * distance
 xx0 = m*(p(2,1) - p(1,1))
 yy0 = m*(p(2,2) - p(1,2))
 xx1 = m*(p(3,1) - p(2,1))
 yy1 = m*(p(3,2) - p(2,2))
 px
 py
for t = 0:0.01:1
 s = 0:1:100
grid on hold on kappa = 0:1:100
for i = 0:1:100
grid on hold off vytvoreni
deltaKappa 
deltaKappa = 0:1:100
for deltaKK = abs(deltaKappa(i) - deltaKappa(i-1)) / (s(i) - s(i-1))

Function Documentation

cos ( a2/180 *  pi  ) 
for deltaKappa ( i   ) 
figure (  ) 
for if ( t~  = 0  ) 
kappa ( i 1  ) 
cla axis equal hold on plot ( p(:, 1)  ,
p(:, 2)   
)
plot ( t  ,
kappa(i+1)  ,
'+'   
)
cla plot ( ,
kappa  ,
'+'   
)
for plot ( polyval(px, t ,
polyval(py, t ,
'.'   
)
end plot ( t 100,
s(t+1)  ,
'+'   
)
s (  )  [pure virtual]
s ( t 1  ) 
end subplot ( ,
,
 
)
subplot ( ,
,
 
)
end subplot ( ,
,
 
)
end vypocet drahy subplot ( ,
,
 
)
cla title ( 'Curvature'   ) 
title ( 'Curvature on Distance'   ) 
cla hold on grid on title ( 'Distance'   ) 
title ( sprintf('Angle=%d^o', abs(a1-a2))   ) 
xlabel ( 't  ) 
xlabel ( 's'   ) 

Variable Documentation

return end a1 = 60
a2 = 0
grid on hold off vytvoreni deltaKappa deltaKappa = 0:1:100
for deltaKK = abs(deltaKappa(i) - deltaKappa(i-1)) / (s(i) - s(i-1))
for i = 0:1:100
grid on hold on kappa = 0:1:100
m = 1.30
p
Initial value:
 
Initial value:
 plotspline(a1, a2, distance, m)
if (m<0)
px
Initial value:
 [ 
   -3*xx1-3*xx0-6*x0+6*x1
  7*xx1+8*xx0+15*x0-15*x1
 -4*xx1-6*xx0-10*x0+10*x1
                        0
                      xx0
                       x0]
py
Initial value:
 [
   -3*yy1-3*yy0-6*y0+6*y1
  7*yy1+8*yy0+15*y0-15*y1
 -4*yy1-6*yy0-10*y0+10*y1
                        0
                      yy0
                       y0]
s = 0:1:100
for t = 0:0.01:1
x0 = p(1,1) * distance
x1 = p(3,1) * distance
xx0 = m*(p(2,1) - p(1,1))
xx1 = m*(p(3,1) - p(2,1))
y0 = p(1,2) * distance
y1 = p(3,2) * distance
yy0 = m*(p(2,2) - p(1,2))
yy1 = m*(p(3,2) - p(2,2))