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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Convert 1x1 vector to scalar in if statement

dsochor
10-Marble

Convert 1x1 vector to scalar in if statement

In the attached Prime worksheet I am trying to use the "logical or" function within a nested if statement. I believe the error is due to db being a 1x1 vector. Is there a way to convert this from a 1x1 vector to a scalar value?

ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald III
(To:dsochor)

Daniel Sochor wrote:

...r. Is there a way to convert this from a 1x1 vector to a scalar value?

Just use the standard vector index ... v[0

Stuart

View solution in original post

3 REPLIES 3
StuartBruff
23-Emerald III
(To:dsochor)

Daniel Sochor wrote:

...r. Is there a way to convert this from a 1x1 vector to a scalar value?

Just use the standard vector index ... v[0

Stuart

Thank you Stuart

StuartBruff
23-Emerald III
(To:dsochor)

No worries, Daniel.

Announcements

Top Tags