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

This value must be a scalar?

Bartz87
1-Newbie

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

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)

MikeArmstrong
5-Regular Member
(To:Bartz87)

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

Top Tags