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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

"This value must be a scalar"

ptc-5660342
1-Newbie

"This value must be a scalar"

Hi all,

How can change this figur to be a scalar

1 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

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

MikeArmstrong
5-Regular Member
(To:ptc-5660342)

Because the units are not compatible

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

pic.PNG

MikeArmstrong
5-Regular Member
(To:ptc-5660342)

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

MikeArmstrong
5-Regular Member
(To:ptc-5660342)

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!

Top Tags