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: remove_blocks_with_name.m
    path of file: ./repos/cnnimageretrieval/cnninit
    
    the code of the file until where you have to start completion: function net = remove_blocks_with_name(net, name)
% REMOVE_BLOCKS_WITH_NAME function removes layers that contain specific name.
%
%   NET = remove_blocks_with_name(NET, NAME)
%   

    
function net = remove_blocks_with_name(net, name)
% REMOVE_BLOCKS_WITH_NAME function removes layers that contain specific name.
%
%   NET = remove_blocks_with_name(NET, NAME)
%   
%   NAME is a string. All layers from NET containing this string will be removed from it.
%
% Authors: F. Radenovic, G. Tolias, O. Chum. 2017. 
	
	% find layers containing string name
	layers = {};
	for l = 1:numel(net.layers)
		if numel(strfind(net.layers(l).name, name))
			layers{1,end