|
"Patrick R" <p.reichmann@inode.at> wrote in message <gok897$fl3$1@fred.mathworks.com>...
> "Matt Fig" <spamanon@yahoo.com> wrote in message <gok7tu$l5e$1@fred.mathworks.com>...
> > "Patrick R" <p.reichmann@inode.at> wrote in message <gok7hg$o02$1@fred.mathworks.com>...
> > > i have managed to get a cell array "found" which looks like this:
> > > 0 0 0 1 0 0 0 0 0 0
> > >
> > > now I would need a function that returns the index of the "1", i.e. in this example "4".
> > > can anybody please help me with this (for me tricky) problem? :)
> > >
> > > thanks, patrick
> >
> >
> > Is it a cell array or a vector, you seem to indicate both. Have a look at the find function.
> >
> >
>
> well I generated it with the isempty function and matlab says it's a <1x10> logical
> guess it's a vector now *blush*
ooooh, the "find"-function works perfectly, I knew it had to be as simple as that =)
thanks alot
|