matlab矩阵相加
>> a1=[1,2,3;2,3,4;3,4,5]
a1 =
1 2 3
2 3 4
3 4 5
>>
>>
>> b1=[1,2,3]
b1 =
1 2 3
>>
>> a1+b1
ans =
2 4 6
3 5 7
4 6 8
>>
>>
>>
matlab矩阵相加
>> a1=[1,2,3;2,3,4;3,4,5]
a1 =
1 2 3
2 3 4
3 4 5
>>
>>
>> b1=[1,2,3]
b1 =
1 2 3
>>
>> a1+b1
ans =
2 4 6
3 5 7
4 6 8
>>
>>
>>