From: Bruno Luong on
"RailGun09 " <zhizhehui(a)hotmail.com> wrote in message <hr0ndp$p7j$1(a)fred.mathworks.com>...
>
> Hi, i understand that values that ym and ix give me is from the matrix itself. But what i would want are values from the respective axes itself. For example like for y axis would be a value of 356.456 and x would be a value of 0.567. Is it possible?

What do you think "x(ix)" represents?

Bruno
From: RailGun09 on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hr1745$2sv$1(a)fred.mathworks.com>...
> "RailGun09 " <zhizhehui(a)hotmail.com> wrote in message <hr0ndp$p7j$1(a)fred.mathworks.com>...
> >
> > Hi, i understand that values that ym and ix give me is from the matrix itself. But what i would want are values from the respective axes itself. For example like for y axis would be a value of 356.456 and x would be a value of 0.567. Is it possible?
>
> What do you think "x(ix)" represents?
>
> Bruno

Haha. I guessed I overlooked that. Thanks for pointing out my mistake. Still a noob >.<
I tried using your solution but the value it gives me is wrong from my graph. Is there any reason to why that happens?

I merely replaced your y with w which is the graph i'm using as an input. Could you like explain what does the -1 and 1 do in this sentence?
[ym,ix] = find(sign(diff(w))==-1,1);

Is it because of the line and plot difference? Thanks alot.
From: us on
"RailGun09 "
> I tried using your solution but the value it gives me is wrong from my graph. Is there any reason to why that happens?
>
> I merely replaced your y with w which is the graph i'm using as an input. Could you like explain what does the -1 and 1 do in this sentence?
> [ym,ix] = find(sign(diff(w))==-1,1);
>
> Is it because of the line and plot difference? Thanks alot.

just let's hope you also changed the X data...

us