Create an array of logical values. [code]A = [true false true; true true false] A = 1 0 1 1 1 0 B = cumprod(A,2)[/code] Find

Create an array of logical values.
Code:
A = [true false true; true true false]
A = 1     0     1
    1     1     0
B = cumprod(A,2)
Find the cumulative product of the rows of A.
A.
B = 1 0 0
0 1 0
B.
B = 1 0 0
1 1 0
C.
B = 1 0 0
1 1 1
D.
B = 1 1 0
1 1 0
 

Tìm kiếm

Back
Top