# calculate the minimum probability

9 views (last 30 days)

Show older comments

### Accepted Answer

Jon
on 19 Jan 2022

Say you have three matrices of the same size A,B,C then you can find the minimum as you describe using

D = min(min(A,B),C)

##### 0 Comments

### More Answers (1)

Steven Lord
on 19 Jan 2022

Assuming they are the same class and size, you can concatenate them and call min with a dimension input.

A = randi([-5, 5], 4)

B = randi([-5, 5], 4)

C = cat(3, A, B)

D1 = min(C, [], 3) % Min along the third dimension

The concatenation strategy can work with more than two arrays, but for this simple example of two arrays you can just call the binary form of min.

D2 = min(A, B)

##### 0 Comments

### See Also

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!