%
%  Suche in einem struct-Array 
%
function strEvent( monat, anz )

    % event = struct( 'Name', '', 'Ort', '', 'Datum', [] );
    for( n=1:anz )
       event(n).Name  = input('Name des Events: ', 's' ); 
       event(n).Ort   = input('Ort des Events: ', 's' ); 
       event(n).Datum = input('Datum des Events [Tag,Monat] : '); 
    end
    
    % nach monat suchen
    for( n=1:anz )
       if( event(n).Datum(2) == monat )
         fprintf( 'Event %s, in %s, am %g.%g. \n', ... 
                  event(n).Name, event(n).Ort, ... 
                  event(n).Datum(1), event(n).Datum(2) );  
       end
    end
 