Sep-17-2018, 11:03 AM
Hello,
I have an easy question. I have an matrix like
C=[[1 2 3]
[4 5 6]
[7 8 9]
and I have a list L=[5 10 5]
I need to check if the elements of first line is less than 5 (L[0]), if the elements of second line is less than 10(L[1]) and if the elements of last line is less than 10(L[2])
And I need the combine this check with other condition :
Let's say
if a>b and "the controls above"
How can I write it ?
Thank you so much
I have an easy question. I have an matrix like
C=[[1 2 3]
[4 5 6]
[7 8 9]
and I have a list L=[5 10 5]
I need to check if the elements of first line is less than 5 (L[0]), if the elements of second line is less than 10(L[1]) and if the elements of last line is less than 10(L[2])
And I need the combine this check with other condition :
Let's say
if a>b and "the controls above"
How can I write it ?
Thank you so much