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: mne_ex_read_raw.m
    path of file: ./repos/spm12/external/mne
    
    the code of the file until where you have to start completion: function [data,times] = mne_ex_read_raw(fname,from,to,in_samples,dest_comp)
%
%   Example of reading raw data
%
%   [ data, times ] = mne_ex_read_raw(fname,from,to,in_samples,dest_comp);
%
%   data        - The data read, compensated and projected, channel by
%                 channel
%   times       - The time points of the samples, in seconds
%
%
%   fname       - The name of the input file
%   from        - Starting time or sample
%   to          - Ending time or sample
%   in_samples  - Are from and to given in samples rather than in seconds
%                 (optional)
%   dest_comp   - Desired (CTF) compensation in the output data (optional)
%
%   NOTE: The purpose of this function is to demonstrate the raw data reading
%   routines. In real world, you probably make multiple calls to
%   fiff_read_raw_segment_times or fiff_read_raw_segment
%   between open and close
%

%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%   Revision 1.5  2008/11/18 02:38:51  msh
%   Modified mne_ex_read_evoked to apply projection and compensation
%   Modified mne_ex_read_raw to call mne_set_current_comp
%
%   Revision 1.4  2006/05/16 00:39:32  msh
%   Fixed error in mne_ex_read_raw: All projection items were not activated.
%   List the initial states of projection items when they are loaded.

    
function [data,times] = mne_ex_read_raw(fname,from,to,in_samples,dest_comp)
%
%   Example of reading raw data
%
%   [ data, times ] = mne_ex_read_raw(fname,from,to,in_samples,dest_comp);
%
%   data        - The data read, compensated and projected, channel by
%                 channel
%   times       - The time points of the samples, in seconds
%
%
%   fname       - The name of the input file
%   from        - Starting time or sample
%   to          - Ending time or sample
%   in_samples  - Are from and to given in samples rather than in seconds
%                 (optional)
%   dest_comp   - Desired (CTF) compensation in the output data (optional)
%
%   NOTE: The purpose of this function is to demonstrate the raw data reading
%   routines. In real world, you probably make multiple calls to
%   fiff_read_raw_segment_times or fiff_read_raw_segment
%   between open and close
%

%
%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%   Revision 1.5  2008/11/18 02:38:51  msh
%   Modified mne_ex_read_evoked to apply projection and compensation
%   Modified mne_ex_read_raw to call mne_set_current_comp
%
%   Revision 1.4  2006/05/16 00:39:32  msh
%   Fixed error in mne_ex_read_raw: All projection items were not activated.
%   List the initial states of projection items when they are loaded.
%
%   Revision 1.3  2006/05/05 03:50:40  msh
%   Added routines to compute L2-norm inverse solutions.
%   Added mne_write_inverse_sol_stc to write them in stc files
%   Several bug fixes in other files
%
%   Revision 1.2  2006/04/23 15:29:40  msh
%   Added MGH to the copyright
%
%   Revision 1.1  2006/04/21 17:31:07  msh
%   Added the examples.
%   Modified the formatting of some informative output.
%
%

%
%   Fiddle with the arguments
%
me='MNE:mne_ex_read_raw';

keep_comp = false;
if nargin == 3
    in_samples = false;
    keep_comp = true;
elseif nargin == 4
    keep_comp = true;
elseif nargin ~= 5
    error(me,'Incorrect number of arguments');
end