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: Least_RMTL.m
    path of file: ./repos/MALSAR/MALSAR/functions/robust
    
    the code of the file until where you have to start completion: %% FUNCTION Least_RMTL
%   Robust Multi-Task Learning with Least Squares Loss.
%
%% OBJECTIVE
%   argmin_W { sum_i^t (0.5 * norm (Y{i} - X{i}' * W(:, i))^2)
%            + rho1 * \|L\|_* + rho2 * \|S\|_{1, 2}}
%   where W = L + S
%       \|S\|_{1, 2} = sum( sum(S.^2) .^ 0.5 )
%       \|L\|_*      = sum( svd(L, 0) )
%
%% INPUT
%   X: {n * d} * t - input matrix
%   Y: {n * 1} * t - output matrix
%   rho1: low rank component L trace-norm regularization parameter
%   rho2: sparse component S L1,2-norm sprasity controlling paramete
    
function value vector.
%   L_hat: low rank component (task relatedness)
%   S_hat: group sparse component (outlier detection)
%
%% LICENSE
%   This program is free software: you can redistribute it and/or modify
%   it under the terms of the GNU General Public License as published by
%   the Free Software Foundation, either version 3 of the License, or
%   (at your option) any later version.
%
%   This program is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%   GNU General Public License for more details.
%
%   You should have received a copy of the GNU General Public License
%   along with this program.  If not, see <http://www.gnu.org/licenses/>.
%
%   Copyright (C) 2011 - 2012 Jiayu Zhou, Jianhui Chen and Jieping Ye
%
%   You are suggested to first read the Manual.
%   For any problem, please contact with Jiayu Zhou via jiayu.zhou@asu.edu
%
%   Last modified on June 3, 2012.
%
%% RELATED PAPERS
%
%   [1] Chen, J., Zhou, J. and Ye, J. Integrating Low-Rank and Group-Sparse
%   Structures for Robust Multi-Task Learning, KDD 2011
%
%% RELATED FUNCTIONS
%   init_opts

function [W funcVal L_hat S_hat L0 S0] = Least_RMTL(X, Y, rho1, rho2, opts)

if nargin <4
    error('\n Inputs: X, Y, rho1, and rho2 should be specified!\n');
end