Skip to main content
18-Opal
November 29, 2018
Solved

Allocate a Variable

  • November 29, 2018
  • 4 replies
  • 2996 views

 

How do a allocate a variable to another variable based on conditional check?

Attached a picture and Mathcad Prime 4 file.

Thanks.

Best answer by Werner_E

> Once I find the column of data whose angle  is close to the angle of the fourth column I want to allocate that column of data to a  variable IF.   The new column of data is now IF .

 

So it looks that my guess was correct!? Can you confirm?

 

So all thats needed is to apply it to a whole column of data which you would have to provide in the first place.

4 replies

23-Emerald IV
November 29, 2018

You're not being very clear:

What 'difference'?

And what do you want IF to be when the 'difference' is > 10 degrees?

I could assume a thing or two, but I'd rather start on clear input.

 

Luc

8-Gravel
November 29, 2018
25-Diamond I
November 29, 2018

Something like this?

B.png

18-Opal
November 29, 2018

Essentially I have 3 columns of data. 

 

These 3 columns of data are individually  compared with a fourth  column of data.

 

Once I find the column of data whose angle  is close to the angle of the fourth column I want to allocate that column of data to a  variable IF.   The new column of data is now IF .

 

Regards

Werner_E25-Diamond IAnswer
25-Diamond I
November 29, 2018

> Once I find the column of data whose angle  is close to the angle of the fourth column I want to allocate that column of data to a  variable IF.   The new column of data is now IF .

 

So it looks that my guess was correct!? Can you confirm?

 

So all thats needed is to apply it to a whole column of data which you would have to provide in the first place.