Re: scaling fxn unique to dataset
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Tue, 5 Aug 2008 19:03:46 +0000 (UTC)
In article <g7309t$ach$1@xxxxxxxxxxxxxxxxxx>,
Daniel Boone <goosahol@xxxxxxxxx> wrote:
a user enters a number of words he tries to remember from a
wordlist. all entries are saved as "data". i want to
compare the unique(data) to wordlist to return the number
of uniquely matched words. my problem is that Uniques=any
(strcmp(unique(data),data)) isn't an aligned matrix, and
i'm having some trouble making them scale. any suggestions
would be greatly appreciated.
If data and wordlist are cell strings, then
udata = unique(data);
upos = strmatch( char(udata), char(wordlist), 'exact');
NUniqueWords = length(upos);
--
"The slogans of an inadequate criticism peddle ideas to fashion"
-- Walter Benjamin
.
- References:
- scaling fxn unique to dataset
- From: Daniel Boone
- scaling fxn unique to dataset
- Prev by Date: Re: Pixel Counting
- Next by Date: Merge bar em plot.
- Previous by thread: scaling fxn unique to dataset
- Next by thread: Re: greek symbols in GUI
- Index(es):
Relevant Pages
|