필터 지우기
필터 지우기

.* and * give me different answer

조회 수: 1 (최근 30일)
yoohooo's
yoohooo's 2019년 7월 28일
댓글: Stephen23 2019년 7월 28일
F = [1.5 0.2; 0.2 1.3];
I = eye(2);
E = 1/2*(F'*F-I);
E =
0.6450 0.2800
0.2800 0.3650
E = 1/2*(F'.*F-I);
E =
0.6250 0.0200
0.0200 0.3450
Why did * operates differ from .*? Can someone show the math behind the .* operator? When I was doing it by hand I got the answer same as * operator.

채택된 답변

amin ya
amin ya 2019년 7월 28일
* % matrix multiplication
.* % element wise multiplication

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by