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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

This value must be a scalar?

Bartz87
1-Visitor

This value must be a scalar?

$7A041C90A894290A.bmp

Sorry if this seems to be a basic question but I cant figure it out how to correct this.

What I'm trying to do is to test the values of each number in the matrix "a" above if it is less than 0, if it is then I will have the result in "b" which will show only the values less than 0 in matrix "a". I've try the above program but results in the error "This value must be a scalar"

Thank you for your help.

6 REPLIES 6
Bartz87
1-Visitor
(To:Bartz87)

I thought I cant correct it...hehe, but I got it now. Here's what I got:

$689340909E0D21EF.bmp

bdw, thanks all for viewing....:)

One more solution:

bool.png

VladimirN
24-Ruby II
(To:Bartz87)

Hello!

Another way:

Pic_1.jpg

rows(a^T)=cols(a)

I wasn't going to provide an alternative because I believe Valery's example to the best way to run with this, but seems we're all having fun.....

Clipboard01.jpg

Mike

Mike Armstrong wrote:

...but seems we're all having fun.....

Mike

Announcements

Top Tags