Re: Vectorizing FIND - help please



On Mon, 29 Aug 2005 17:35:32 -0400, ysjung wrote:

> I have a problem with FIND command!
>
> I have been trying to vectorize this:
>
> str = 'cool water is . refreshing ?';
>
> i = find(str == [' ' '.' '?']);
>
> and I get this error.
> ??? Error using ==> eq
> Matrix dimensions must agree.
>
> I know how to this in loops but it just takes forever ... any
> recommandation would be greatly approaciated!

help strfind

Dan
.



Relevant Pages

  • Re: hypenation
    ... But normally folks put the entire \hyphenation command in a file and ... Dan ... Prev by Date: ...
    (comp.text.tex)
  • Re: load mat file programatically
    ... paul writes: ... > Hi Dan ... what other command I should use instead. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: Vectorizing FIND - help please
    ... > I have a problem with FIND command! ... > I have been trying to vectorize this: ... Roger Stafford ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: RUN with parameters?
    ... Of course you can pass parameters on the command line. ... always passed as strings. ... Dan ... Prev by Date: ...
    (microsoft.public.fox.programmer.exchange)
  • Vectorizing FIND - help please
    ... I have a problem with FIND command! ... I have been trying to vectorize this: ... Matrix dimensions must agree. ... Prev by Date: ...
    (comp.soft-sys.matlab)