From: beginner on
I am trying to use cellfun to find the max point for each cell of my
1x10 cell array. Is this possible?

I tried this, but it returned all 1's:

cellfun(@(x) find(max(x)), var1)%where var1 is my 1x10 cell array
From: Jos (10584) on
beginner <beginner1.mat(a)hotmail.com> wrote in message <eeca62f8-5b15-4fe3-bd8b-46783dd15581(a)y6g2000pra.googlegroups.com>...
> I am trying to use cellfun to find the max point for each cell of my
> 1x10 cell array. Is this possible?
>
> I tried this, but it returned all 1's:
>
> cellfun(@(x) find(max(x)), var1)%where var1 is my 1x10 cell array

First try it on a single cell of your 1x10 cell array, and see what is wrong with the statement find(max(x)), which (almost) always returns 1

Do you need the maximum value, or the position of the maximum value?

Jos