Functions | Variables

splines.m File Reference

Functions

 replace (['$$X='latex(X) '$$'])
 fclose (f)
 disp ('Put these valies to plotspline.m')[px

Variables

global f f = fopen('matlab.tex', 'w')
syms x0 y0 x1 y1 xx0 yy0 xx1
yy1 t real 
M
 bx
 by
 X = M\bx
 Y = M\by
 T = [t^5
 t
 x = X'*T
 x_ = diff(x, 't')
 x__ = diff(x, 't', 2)
 y = Y'*T
 y_ = diff(y, 't')
 y__ = diff(y, 't', 2)
 k = (x_*y__-y_*x__)/(x_^2+y_^2)^(3/2)
 k0 = subs(k, 't', 0)
 k1 = subs(k, 't', 1)
 sx = coeffs(x,t)
reorder coeficients px = coeffs(y,t)[sx==t^5
 sy = =t^4

Function Documentation

disp ( 'Put these valies to plotspline.m'   ) 
fclose ( f   ) 

Here is the caller graph for this function:

replace (  ) 

Variable Documentation

bx
Initial value:
 [
    x0
    x1
    xx0
    xx1
    0
    0
    ]
by
Initial value:
 [
    y0
    y1
    yy0
    yy1
    0
    0
    ]
global f f = fopen('matlab.tex', 'w')
k = (x_*y__-y_*x__)/(x_^2+y_^2)^(3/2)
k0 = subs(k, 't', 0)
k1 = subs(k, 't', 1)
syms x0 y0 x1 y1 xx0 yy0 xx1 yy1 t real M
Initial value:
[
    0 0 0 0 0 1
    1 1 1 1 1 1
    0 0 0 0 1 0
    5 4 3 2 1 0
    0 0 0 1 0 0
    20 12 6 2 0 0
    ]
reorder coeficients px = coeffs(y,t)[sx==t^5
sx = coeffs(x,t)
sy = =t^4
t
T = [t^5
x = X'*T
X = M\bx
x_ = diff(x, 't')
x__ = diff(x, 't', 2)
y = Y'*T
Y = M\by
y_ = diff(y, 't')
y__ = diff(y, 't', 2)