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: fiff_write_raw_segment_times.m
    path of file: ./repos/fieldtrip/external/mne
    
    the code of the file until where you have to start completion: function fiff_write_raw_segment_times(fname, raw, from, to, sel, drop_small_buffer, buffer_size_sec)
%   FIFF_WRITE_RAW_SEGMENT_TIMES   Write chunck of raw data to disk
%       [] = FIFF_WRITE_RAW_SEGMENT_TIMES(FNAME, RAW, FROM, TO, SEL)
%

    
function fiff_write_raw_segment_times(fname, raw, from, to, sel, drop_small_buffer, buffer_size_sec)
%   FIFF_WRITE_RAW_SEGMENT_TIMES   Write chunck of raw data to disk
%       [] = FIFF_WRITE_RAW_SEGMENT_TIMES(FNAME, RAW, FROM, TO, SEL)
%
%   The functions reads data from a file specified by raw
%   which is obtained with fiff_setup_read_raw
%
% fname              - the name of the file where to write
% raw                - structure returned by fiff_setup_read_raw
% from               - starting time of the segment in seconds
% to                 - end