Co oznacza operator „dot” (.)?
Podany kod:
A = [1 2 3; 3 2 1]
B = A.^2
Wyjście :
B =
1 4 9
9 4 1
Ale jeśli to zrobię:B = A^2
Dane wyjściowe to:
Error using ^
Inputs must be a scalar and a square matrix.
To compute elementwise POWER, use POWER (.^) instead.
Co robi operator.
zrobić dokładnie?