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: mci_linear_plot_fit.m
    path of file: ./repos/spm/toolbox/mci/models/linear
    
    the code of the file until where you have to start completion: function [] = mci_linear_plot_fit (M,Y,y,names)
% Plot fit of linear time series model
% FORMAT [] = mci_linear_plot_fit (M,Y,y,names)
%
% M         data structure for linear model
% Y         data points
% y{i}      ith time series
% names{i}  name of
%__________________________________________________________________________

% Will Penny
% Copyright (C) 2015 Wellcome Trust Centre for Neuroimaging

lw=2;
cols={'k-','b-','r-'};

    
function [] = mci_linear_plot_fit (M,Y,y,names)
% Plot fit of linear time series model
% FORMAT [] = mci_linear_plot_fit (M,Y,y,names)
%
% M         data structure for linear model
% Y         data points
% y{i}      ith time series
% names{i}  name of
%__________________________________________________________________________

% Will Penny
% Copyright (C) 2015 Wellcome Trust Centre for Neuroimaging

lw=2;
cols={'k-','b-','r-'};
hold on
for i=1:length(y)
    plot([1:M.T],y{i},cols{i},'LineWidth',lw);
end