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: testCircleDrive.m
    path of file: ./repos/ethx-autonomous-mobile-robot/exercise/exercise2/code/Ex2_KinematicsAndControl/test
    
    the code of the file until where you have to start completion: %% Test Script

% Tests the implemented (local) dynamic window approach 
% by passing predefined inputs and checking the outputs for correctness.

more off;
close all

%% Test parameters
vu = 1.0;
omega = 2.0;
parameters.wheelRadius = 0.25/2.0;
parameters.interWheelDistance = 0.25;

%% Run test
T = 0.001;                   % Timestep
N = 10000;                   % Number of timesteps
X = zeros(3,N);             % Robot State
X(:,1) = [0.5; 0.0; pi/2];  % Ini
    
function
    [LeftWheelVelocity, RightWheelVelocity ] = calculateWheelSpeeds(vu, omega, parameters);

    % Calculate speed and simulate robot (Euler-forward)
    M = [parameters.wheelRadius/2 parameters.wheelRadius/2; parameters.wheelRadius/(parameters.interWheelDistance) -parameters.wheelRadius/(parameters.interWheelDistance)];
    v = M*[RightWheelVelocity;LeftWheelVelocity];
    dx = [cos(X(3,i-1)) 0; sin(X(3,i-1)) 0; 0 1]*v;
    X(:,i) = X(:,i-1)+T*dx;
    
    % Check the obtained radius
    if(abs(v(1)/v(2)-0.5) > 0.02)
        correctRadius = false;
    end