📜  元素明智减法matlab - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:32.302000             🧑  作者: Mango

代码示例1
%Matlab thinks in Arrays, it means that the subtraction operation 
%works by default between two arrays (must be of same size and 
%same orientation)

A = [1 0; 2 4];
B = [5 9; 2 1];
C = A-B

C = 2×2

    -4    -9
     0     3