cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

"This value must be a scalar"

ptc-5660342
1-Visitor

"This value must be a scalar"

Hi all,

How can change this figur to be a scalar

ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:ptc-5660342)

So then perhaps what you want is something like this?

calc.png

View solution in original post

11 REPLIES 11
Werner_E
25-Diamond I
(To:ptc-5660342)

We don't see the definition of S.ts_a.

The variables you show seem to be 1 x 2 matrices. I am not sure if you have created them that way on purpose or accidentially have used the square brackets.

If your variables are matrices consisting of two values on purpose, you will have to decide which of those two values you want to compare against S.ts_a (I suppose this will be a scalar).

For further questions please additionally attach your worksheet.

HI - thanks for replay

The matrices is for purpose

It still does not work?

pic.PNG

Because the units are not compatible

But, it does work without the matrix (units are still the same)

pic.PNG

The sheet you posted has units for S.H as m*psi, not pressure.

Thanks for you very quicke respond

I can't find unit like that - I will be very greatfull if you show me this

This is what I see.

Clipboard01.jpg

RichardJ
19-Tanzanite
(To:ptc-5660342)

I see what Mike sees. What version of Prime was used to create the worksheet?

Regardless, you can't use such a comparison in an if statement. The result of the comparison is a vector, for example [1 1], and the if statement does not know what to do with that because it's really the result of two comparisons, not one. Should it execute only if both are true (logical AND), or if one or the other or both are true (logical OR) or if one or the other, but not both, are true (logical XOR)? Under what conditions do you want the if statement to execute?

I am sorry Mike - I was removing 'secret ' data from calcs and and have't noticed this m*psi unit

I think Richard has unswered this question - I thought i can get the matric at the end of 'if statement'

Thanks a lot

RichardJ
19-Tanzanite
(To:ptc-5660342)

So then perhaps what you want is something like this?

calc.png

Thank you very much!

Announcements

Top Tags