Home > brede > brede_str_phrasefrq.m

brede_str_phrasefrq

PURPOSE ^

brede_str_phrasefrq - Compute phrase frequency

SYNOPSIS ^

function [frq, uniquephrases] = brede_str_phrasefrq(phrases)

DESCRIPTION ^

 brede_str_phrasefrq  - Compute phrase frequency

       function [frq, uniquephrases] = brede_str_phrasefrq(phrases)

       Input:  phrases       Cellstring with words or phrases

       Output: frq           Absolute frequency of occurence of the
                             phrase  
               uniquephrases Unique phrases

       Count the number of occurences. Both frq and uniquephrases are 
       sorted. 

       Example:
         p = { 'PET' 'fMRI' 'fMRI' 'fMRI' 'PET' 'MEG' };
         [frq, up] = brede_str_phrasefrq(p)
         barh(1:length(frq), frq);
         set(gca, 'ytick', 1:length(frq));
         set(gca, 'yticklabel', up);  

       See also BREDE, BREDE_STR, BREDE_STR_CHARFRQ,
                BREDE_STR_PLOT_PHRASEFRQ.

 $Id: brede_str_phrasefrq.m,v 1.2 2005/03/17 13:39:17 fnielsen Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005