>> p=[1;2;3]
p =
1
2
3
>> p1 = [2;3;4]
p1 =
2
3
4
>> p + p1
ans =
3
5
7
>> p .+ p1
Error: "p" was previously used as a variable, conflicting with
its use here as the name of a function or command.
See "How MATLAB Recognizes Command Syntax" in the MATLAB
documentation for details.
而且
>> p .* p1
ans =
2
6
12
>> p * p1
Error using *
Inner matrix dimensions must agree.
作品適合我在八度...除了'p * p1'這是正確的:你不能在兩個3x1向量上做矩陣乘法。 – am304