You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cubic_spline.m
    path of file: ./repos/rrt_toolbox/func
    
    the code of the file until where you have to start completion: function [ yy ] = cubic_spline( x, y, xx)
%CUBIC_SPLINE Summary of this function goes here
%   Detailed explanation goes here

% assuming that arguments has same number of elements

yy = zeros(1, size(xx,2));
x_num = size(x,2);

    
function [ yy ] = cubic_spline( x, y, xx)
%CUBIC_SPLINE Summary of this function goes here
%   Detailed explanation goes here

% assuming that arguments has same number of elements

yy = zeros(1, size(xx,2));
x_num = size(x,2);

b = zeros(x_num-3, 1);
A = zeros(x_num-3, x_num-1);
h = zeros(x_num-2, 1);

for ind = 1 : x_num-1
    h(ind) = x(ind+1) - x(ind);
end