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 |
disp | ( | 'Put these valies to plotspline.m' | ) |
fclose | ( | f | ) |
replace | ( | ) |
[ x0 x1 xx0 xx1 0 0 ]
[ y0 y1 yy0 yy1 0 0 ]
[ 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 ]
T = [t^5 |
y = Y'*T |