Hi,
I used shift function but in vein because I need to shift the values
both
right and left.
Suppose I am having four arrays like below,
x=[1,2,3,4,5,6,7,8,9,10]
y1=[2,3,1,5,6,7,8,1,7,6]
y2=[5,1,6,7,8,7,7,5,1,8]
y3=[1,2,3,4,5,6,7,8,9,1]
that is if I plot,x,y1&oplot,x,y2&oplot,x,y3
then the minimum of y1, y2, y3 occur at different values of x, say
from
the above arrays, min(y1) occurs at x=3 and x=8, min(y2) occurs at x=2
and
x=9
and min(y3) occurs at x=1 and x=10. Now with reference to min(y2), I
need
to shift min(y1) and min(y3) in such a way that both should occur at
x=2
and x=9.
Can anyone give some tips and suggesions in this regard.
regards
sid
On Apr 17, 1:49 am, Gianguido Cianci <gianguido.cia...@gmail.com>
wrote:
>> On Apr 16, 6:32 am, sid <gunvicsi...@gmail.com> wrote:
>> Hi,
>> Thank you for the reply, now if i run this code in terminal, the
>> minimum of y1 value occurs at x= 1 and the minimum value of y2 occurs
>> at x=3, now I need the minimum values of y1 and y2 to occur at one x
>> value, so can you give me some tips in this regard.
>> regards
>> sid
>
> Hi Sid,
>
> Please use the forum to communicate, this way other can benefit from
> your questions.
>
> As far as your question, look at the SHIFT function in IDL, that
> should do the trick...
>
> G
|