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: fiff_dir_tree_find.m
    path of file: ./repos/spm/external/mne
    
    the code of the file until where you have to start completion: function [nodes] = fiff_dir_tree_find(tree, kind)
%
% [nodes] = fiff_dir_tree_find(tree,kind)
%
% Find nodes of the given kind from a directory tree structure
%

%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause

    
function [nodes] = fiff_dir_tree_find(tree, kind)
%
% [nodes] = fiff_dir_tree_find(tree,kind)
%
% Find nodes of the given kind from a directory tree structure
%

%   Author : Matti Hamalainen, MGH Martinos Center
%   License : BSD 3-clause
%
%   Revision 1.4  2006/11/30 05:43:29  msh
%   Fixed help text in fiff_dir_tree_find
%   Fixed check for the existence of parent MRI block in mne_read_forward_solution
%
%   Revision 1.3  2006/04/23 15:29:40  msh
%   Added MGH to the copyright
%
%   Revision 1.2  2006/04/12 10:29:02  msh
%   Made evoked data writing compatible with the structures returned in reading.
%
%   Revision 1.1  2006/04/10 23:26:54  msh
%   Added fiff reading routines
%

me = 'MNE:fiff_dir_tree_find';

if nargin ~= 2
    error(me, 'Incorrect number of arguments');
end