From: isha ram on 16 Apr 2010 12:06 how to get the how to get the second local minimum and thereafter average all the values from the second local minimum ex: 1 2 3 4 5 6 3 2 1 4 5 6 7 first local minimum =3 R = average(3,2,1,4,5,6,7) thanks in advance
From: ImageAnalyst on 16 Apr 2010 12:10 Wouldn't the first local min be the 1 at the first element? And wouldn't the second local min be the 1 at position 9? I don't follow your example. Can you try again?
From: isha ram on 16 Apr 2010 15:45 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <465323f6-adf8-467e-ad50-e88c49d08792(a)j5g2000vbl.googlegroups.com>... > Wouldn't the first local min be the 1 at the first element? And > wouldn't the second local min be the 1 at position 9? I don't follow > your example. Can you try again? Q=[1 0.9 0.8 0.7 0.6 0.5 0.6 0.4 0.3 0.2 0.6 ....] first local minimum=0.5 second local minimum=0.2 thanks
From: dpb on 16 Apr 2010 15:57 isha ram wrote: > ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message > <465323f6-adf8-467e-ad50-e88c49d08792(a)j5g2000vbl.googlegroups.com>... >> Wouldn't the first local min be the 1 at the first element? And >> wouldn't the second local min be the 1 at position 9? I don't follow >> your example. Can you try again? > > Q=[1 0.9 0.8 0.7 0.6 0.5 0.6 0.4 0.3 0.2 0.6 ....] > first local minimum=0.5 > second local minimum=0.2 > thanks >> Q=[1 0.9 0.8 0.7 0.6 0.5 0.6 0.4 0.3 0.2 0.6]; >> Q(diff(Q)>0) ans = 0.5000 0.2000 >> You're welcome... :) --
From: isha ram on 19 Apr 2010 02:57
dpb <none(a)non.net> wrote in message <hqafij$k8o$1(a)news.eternal-september.org>... > isha ram wrote: > > ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message > > <465323f6-adf8-467e-ad50-e88c49d08792(a)j5g2000vbl.googlegroups.com>... > >> Wouldn't the first local min be the 1 at the first element? And > >> wouldn't the second local min be the 1 at position 9? I don't follow > >> your example. Can you try again? > > > > Q=[1 0.9 0.8 0.7 0.6 0.5 0.6 0.4 0.3 0.2 0.6 ....] > > first local minimum=0.5 > > second local minimum=0.2 > > thanks > > >> Q=[1 0.9 0.8 0.7 0.6 0.5 0.6 0.4 0.3 0.2 0.6]; > >> Q(diff(Q)>0) > ans = > 0.5000 0.2000 > >> > > You're welcome... :) > thanks > -- |