function M_hat = run_mc(params)
  M = params.M;
  Idx = params.Idx;
  warning('off','all');
  [numr,numc] = size(M);
  rank = 10;
  Known = find(Idx);
  data = M(Known);
  [U,S,V] = svp(Known,data,numr,numc,rank);
  M_hat = U*diag(S)*V';
  warning('on','all');
end

andrewssobral
github-repos/MATLAB/andrewssobral-mctc4bmi/mctc4bmi-fbcbcd25654b818646387c3d6a64304fb60e12dd/algs_mc/SVP/run_mc.m
mctc4bmi
github-repos/MATLAB/andrewssobral-mctc4bmi
fbcbcd25654b818646387c3d6a64304fb60e12dd