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: nofriction.m
    path of file: ./repos/robotics-toolbox-matlab/Octave/@Link
    
    the code of the file until where you have to start completion: %NOFRICTION	return link object with
    
function  l2 = nofriction(l, only)
%Link.nofriction Remove friction
%
% LN = L.nofriction() is a link object with the same parameters as L except 
% nonlinear (Coulomb) friction parameter is zero.
%
% LN = L.nofriction('all') is a link object with the same parameters as L 
% except all friction parameters are zero.

	l2 = Link(l);
	if (nargin == 2) && strcmpi(only(1:3), 'all')
		l2.B = 0;
	end