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: readCloudCsv.m
    path of file: ./repos/CoBigICP
    
    the code of the file until where you have to start completion: function [ rawPoints ] = readCloudCsv( filename, subSampleRatio )
%READCLOUDCSV read csv files of ETH data set
% INPUTS:
% - filename: CSV file name of the point cloud to be ploted. It can be
%                   local point cloud (ex.: Hokuyo_0.csv) or global map (ex.:
%                   PointCloud0.csv).
% - subSampleRatio: Ratio of point to be removed (used for performance
%                               reasons)
%


    
function [ rawPoints ] = readCloudCsv( filename, subSampleRatio )
%READCLOUDCSV read csv files of ETH data set
% INPUTS:
% - filename: CSV file name of the point cloud to be ploted. It can be
%                   local point cloud (ex.: Hokuyo_0.csv) or global map (ex.:
%                   PointCloud0.csv).
% - subSampleRatio: Ratio of point to be removed (used for performance
%                               reasons)
%

% Load data
cloud = importdata(filename);

% Extract coordinates
x = cloud.data(:, strcmp('x', cloud.colheaders));
y = cloud.data(:, strcmp('y', cloud.colheaders));
z = cloud.data(:, strcmp('z', cloud.colheaders));

% Subsample
f = rand(1, length(x));

x = x(f > subSampleRatio);
y = y(f > subSampleRatio);
z = z(f > subSampleRatio);

rawPoints = [x y z];
end