Skip to main content
4-Participant
February 17, 2015
Question

how to pass values of find to some other varaibles

  • February 17, 2015
  • 1 reply
  • 772 views

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
February 17, 2015

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.