Info

此问题已关闭。 请重新打开它进行编辑或回答。

how to pick max value in different matrix

1 次查看(过去 30 天)
Raja Zufar
Raja Zufar 2020-7-19
关闭: MATLAB Answer Bot 2021-8-20
Hello i have 3 simple matrix and i want to pick the max value, heres the example
A= [52]
B= [93]
C= [75]
D=[93] %its picked by the max value
thanks you guys for helping me :)
  1 个评论
Bruno Luong
Bruno Luong 2020-7-19
编辑:Bruno Luong 2020-7-19
What do you expect for D if your three matrices are not (1 x 1) but (2 x 2) ?
A =
5 9
6 6
B =
4 8
7 6
C =
1 1
9 5
D = ?

回答(2 个)

madhan ravi
madhan ravi 2020-7-19
  1 个评论
madhan ravi
madhan ravi 2020-7-19
Instead of creating a three different matrix , having them as one matrix relives a lot of pain ;)

madhan ravi
madhan ravi 2020-7-19
ABC = cat(3,A,B,C);
D = max(ABC)

此问题已关闭。

标签

产品


版本

R2018a

Translated by