Skip to main content
4-Participant
Feb 17, 2015 2:02 AM UTC
Question

how to pass values of find to some other varaibles

I have some values in the Find function like,

f(v):=Find(x,y)

I want to assign the values of (f(v)0 , f(v)1) to two variables like,

X:= f(v)0 Y:=f(v)1 and i want to use these values.

How can i do this.

In the attached file, i explained clearly.

thank you in advance.

1 reply

Werner_E
25-Diamond I
Feb 17, 2015 7:54 PM UTC

You can do it exactly as you outlined in your posting (X:=f(v)[0, etc.) or even better put on the LHS a 2x1 vector consisting of the variable names X and Y and on the RHS just f(v).

The problems you experience (which?) ,may be because you define v as a range and not as a vector.

Translate