Sep-16-2018, 02:44 PM
Hello folks,
I need a small help , it is very easy question but since I am beginner I stucked a bit.
I have a matrix like that :
C=[[1 2 3 4 ]
[7 8 9 10]
[12 13 14 15]
[5 7 7 6]]
I need to check all the elements of third line of matrix [12 13 14 15]:
If first element is > b:
do this
with the same fashion from first to fourth which is 15 , I have to check. I could not select specifically third line of matrix to check the elements ? How can I do that ?
Thank you
I need a small help , it is very easy question but since I am beginner I stucked a bit.
I have a matrix like that :
C=[[1 2 3 4 ]
[7 8 9 10]
[12 13 14 15]
[5 7 7 6]]
I need to check all the elements of third line of matrix [12 13 14 15]:
If first element is > b:
do this
with the same fashion from first to fourth which is 15 , I have to check. I could not select specifically third line of matrix to check the elements ? How can I do that ?
Thank you